Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set printing Report 5 in different size papers

Status
Not open for further replies.

Asvni

Technical User
Sep 30, 2001
15
0
0
MY
When printing the report using Report 5, by default it prints on A4. I want to set the paper size to A3 so that it prints automatically on the A3 paper without the user selecting on the printer settings.
This is Report 5, so, I can't find any properties on the Layout of the Report. Is there any other properties that I can set in order to print the report on an A3 paper?

Looking for your suggestions or help!
Thank you.
 
Hi,
What you can do is to have a printer with Two paper trays in it, one with A3 Paper and one with A4 paper.

Now in case of this report pass the Tray number ,say TRAY2.
(Remember you have to store this Tray no somewhere in a Table or you may harcode it).
Change your report to have a parameter P_TRAY which will be passed to the report by Form.

Add the following code in Before parameter form of your report:
function BeforeReport return boolean is
begin
IF :p_TRAY IS NOT NULL THEN
srw.attr.mask := SRW.PRINTER_INTRAY_ATTR;
srw.attr.printer_intray := :p_TRAY;
srw.set_attr(SRW.REPORT_ID, srw.attr);
END IF;
return (TRUE);
end;

Now by default report will pick Paper from TRAY2 only when printing(This will work only if you have specified Print on printer option from Forms & not from Report's previewr Print option).

HTH

Regards
Himanshu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top