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

Problem while printing an Image(Same size as the paper) on the Re port



Hi everyone,
        I am experiencing a problem when trying to print an image, almost
the same size of the Page layout (A4).
        In my SQR I will be printing the Image and on that I will printing
some text.

        When I run this SQR my output is going to the SQR Source directory
instead of the Output Directory.

        And for the same SQR, if I comment printing the image and print only
the text and use the default Layout, I am able to get the Output(PDF File)
in the Output directory. My Image size is 8.5/10.89 Inches and I even tried
with reducing the size.

        Can anyone please help me why is it happening like this, And is
there any problem with this code.

Here is the pieces of code I am using:
        Report Layout and Declare code:

                declare-layout LN_PER_IN_16
                        paper-size={PAGE_PAPER_SIZE}            !The Paper
size is (8.5,11)
                        orientation={PAGE_ORIENTATION}          !Orientation
is Portrait
                        left-margin=0
                        top-margin=0
                        bottom-margin=0
                        right-margin=0
                        line-height=4.5                                 !72
points/4.5=16 prt ln/inch
                        char-width={CHAR_WIDTH}                 !4.32 points
allowing max 16.6 char/in cols
                end-declare

                Declare-Report MO_CERT
                        layout=LN_PER_IN_16
                        printer-type={PRINTER_TYPE}
                End-declare

        Image Declaration:
                Declare-image MO_CERT
                        type          = JPEG-FILE
                        image-size    = (140,174)
                        source        = ' '
                end-declare

        Image Printing Code:
                print-image MO_Cert ()
                source=$image_path_MOcert
!Image is place in the same Directory

        And before printing this report, I am using
                        use-report MO_Cert                              ! I
am using this since this is a Multiple Report SQR

        If I use this statement 'use-report MO_Cert' and run the SQR, the
output PDF is stored in SQR Directory.
        and if I comment Printing the image and print only the text and
remove the statement 'use-report MO_Cert', I get the output in the Output
Directory.

Can any one please help me in this matter.

Thanks

Raman
rabbu@utilicorp.com