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

Re: Getting SQR 6003 error (Unexpected End-of-File.....)



> I have read through your SQR for Windows notes and have tried using
> the info. I am trying both SQR version 3.0.13 and 3.0.18.1.1
> and can not get my BMP image to print. I still get a shaded box.
> My environment is Win95,Oracle,PeopleSoft HRMS 6.1
>
> This is my code:
>
> DECLARE-REPORT check-printing
>    layout = portrait-layout
>    printer-type = HP
> END-DECLARE
>
> DECLARE-IMAGE JMU-logo
>    image-size = (5,6)
>    source = 'c:\temp\jmusig.bmp'
>    type = BMP-FILE
> END-DECLARE
>
> end-setup
>
> ......
>
> use-report check-printing
> print-image JMU-logo (1,1)
>
>
> I do not need to have this printed directly to the printer.
> Do I still need the -printer:wp flag? We do not use the -f flag
> either.

The problem here is not exactly the "direct-printing under Windows" problem
I covered in my document, but rather a problem how to printing images (a
topic worthy of its own document....).

I think the problem you are having is that you are trying to print a BMP
image in an HP-formatted report.  It's not well explain in the SQR3 manual,
but the type of image you use must match the report format: BMP for Windows,
HPGL for HP, and EPS for PostScript.

So, yes, to print a BMP image, you either need to use -printer:wp, or you
need to use -keep and then print the SPF file from SQRWV.  In either case,
you will only be able to print it from a Windows machine, and your
report formatting may change somewhat.

If you would like to be able to print the report from the server (or even
from the PC but using HP instead of Windows output), you'll need to convert
your BMP file to HPGL.  You can search the sqr-users archives for
"printing logos", "hpgl", etc. for more info on that.
(http://www.sqrug.com/~sqrusers/search/).

                                                        Nathan
----------------------------------------------------------------------------
Nathan Treadway    | Ray Ontko & Co. | Software consulting services
nathant@ontko.com  | Richmond, IN    | http://www.ontko.com/