Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

printing mutilple report

edited November 2006 in General
Hello

i want to print multiple reports.
When printing the first report the printer dialog is showed. But also the
second and third report ask for this printer.
How can i read the chosen printer from the first report so that i can set it
for the second and third report.

Or is there a better way to print multiple reports for example in one print
job.

Met vriendelijke groet, With kind regards,


Frank Beerens

Comments

  • edited November 2006
    Hi Frank,

    One option would be to set the ShowPrintDialog property of the second and
    third reports to False and assign the PrinterSetup from the first report to
    each of them before you print. This would print the second and third
    reports with the same settings but would not show the print dialog.

    There is an archive merge utility available that allows you to merge
    multiple archive files into a single one to essentially print multiple
    reports as one print job. This utility can be found on our web site at the
    following address... kuRAFMerge.

    http://www.digital-metaphors.com/download/report_component_library.html

    It would also be possible to create a single main report containing three
    section subreports in the detail band, each containing a report that you
    would like to print. You would then be able to print all three reports in a
    single print job.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2006
    Hello Nico

    i tried the printersetup.printername propertie. But after printing the
    report the printername propertie is still the orginal printername and not
    the one i have chosen. How can i read the selected printer ?

    Merging the reports into one is not possible because reports can also be
    printed seperately.

    Franl


  • edited November 2006
    Hi Frank,

    Inside the OnPrintDialogClose, you can check the Report.PrintDialog property
    to see the name of the printer the user has selected. It is also possible
    to implement the OnPageReceive of the printer device and check the
    PrinterSetup of the page sent to obtain this information.

    uses
    ppPDlg;

    begin
    TppPrintDialog(Report.PrintDialog).cbxPrinters.Text

    or...

    PrinterReceivePageEvent..
    begin
    aPage.PrinterSetup.PrinterName;

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.