[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

[sqr-users] Printing Images



SQR/4.3.4
Sun Microsystems Inc.   SunOS 5.6
Oracle 8i
Indus / Empac
 
I am trying to print a EPS file and encountering some problems. I can
generate the image correctly to a .lis file and send it to the printer
on Unix with no problems. The difficulties come in when I try to create
a .pdf file from the .spf generated. The vendor s/w we use generates a
.lis .spf and .pdf for each report. The user can pick either host or
windows print , windows opens the .pdf in a viewer and allows them to
print it.
 
Sample code, this program creates the .lis file correctly and prints
fine on the host. I have included some code to make sure image and text
can both be printed on the same page.
BEGIN-SETUP
  DECLARE-LAYOUT default
    PAPER-SIZE   = (8.27,11)
    ORIENTATION  = PORTRAIT
    LEFT-MARGIN  = .0
    RIGHT-MARGIN = .0
    CHAR-WIDTH   = 6.0
    MAX-LINES    = 56
  END-DECLARE
  DECLARE-PRINTER default-hp
    POINT-SIZE = 12
    PITCH      = 12
    FONT       = 3
    SYMBOL-SET = 8U
  END-DECLARE
  DECLARE-REPORT default
    LAYOUT       = default
    PRINTER-TYPE = postscript
  END-DECLARE
END-SETUP
Begin-Program
 LET $epsfile = 'sqribe.eps'
 Alter-Printer Font=5 Point-Size=12
 Print-Image (6,6)
  Image-Size = (30,40)
  Source = $epsfile
  Type = EPS-FILE
 DO process_emp
End-Program
Begin-Heading 2
 print 'Employee List with no User ID'    (+1)  center
 print $current-date                      (,1)  edit 'DD-MON-YYYY'
End-Heading
Begin-Procedure process_emp
 print 'NO employees found................' (+1)
End-Procedure !process_emp
 
I then use SQRP to create a .pdf file
sqrp embed_eps.spf -Fembed_eps.pdf PRINTER:PD 
 
Host print works fine, but viewing the .pdf in Acrobat shows the text
and heading correctly and a shadded rectangle.
 
I have not been able to find documentation on PRINTER:PD, but this is
what the vendor uses in their s/w, although they do not have images
printed in any of their provided reports.
 
Any help would be greatly appreciated. Thanks
 
Dave MacLellan
SP-2A-C
423-751-7734
865-632-3560
800-283-0028 #2941
 

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users