About setup the [Copies] and [Collation] on Print Dialog
Hi,
I am writing an End User Reporting Program. I have one form which can allow
user to insert the number of copies before print. I also have writtern a
function in RAP to get that number. The
function is work. I have writtern the following RAP in the
Report.BeforePrint:
Report.PrinterSetup.Copies := MyRAPcopies;
Report.PrinterSetup.Collation := False;
[MyRAPcopies] is my RAP function to get the number of copies. I found that
the Event is worked when I preview (ppReportExplorer.PrintPreview) the
report first then press print button.
However, this event does not work when I directly print
(ppReportExplorer.Print) the report, anyone have the solution?
Thanks,
Raymond Ng.
I am writing an End User Reporting Program. I have one form which can allow
user to insert the number of copies before print. I also have writtern a
function in RAP to get that number. The
function is work. I have writtern the following RAP in the
Report.BeforePrint:
Report.PrinterSetup.Copies := MyRAPcopies;
Report.PrinterSetup.Collation := False;
[MyRAPcopies] is my RAP function to get the number of copies. I found that
the Event is worked when I preview (ppReportExplorer.PrintPreview) the
report first then press print button.
However, this event does not work when I directly print
(ppReportExplorer.Print) the report, anyone have the solution?
Thanks,
Raymond Ng.
This discussion has been closed.
Comments
report begins generating pages after you've pressed the print button from
the report exlporer. What you'll have to do in this case is set the
Report.PrinterSetup.Copies in the OnLoadEnd event of the Report.Template.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Sorry, can you mind to provide me a sample program which show how to
implement a OnLoadEnd event in the Report.Template? Since I fail to do this.
Thanks.
Raymond Ng.
this. Also, see the End User demo for the Report Explorer. It utilizes and
OnLoadEndEvent handler on the report template.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com