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

Strange behaviour in Report.PrintToDevice vs. Report.Print*

edited August 2015 in General
Hi,

i have a very strange behaviour whcih i can not explain after several
hours of debugging.
There is a report with 2 pages.
We setup report..Printer.PrinterSetup.Copies to a defined number i

When using report.printtodevice the result is a single report with two
pages
When using any ohter method, such as report.print, the
printersetupdialog appears while displaying the correct numbers of
copies, but printig results in
- one report containing only the 1 pages from the source
- i-times a report containg i-copies of the pages of the source

any idea what is happening?

Comments

  • edited August 2015
    Hi Carsten,

    1. When calling PrintToDevices, each device is created and setup by the
    developer. For instance, if you would like multiple copies, you need to
    alter the PrinterDevice.Printer.PrinterSetup.Copies property.

    2. When calling Report.Print, the devices are created and setup
    internally. Be sure to alter the Report.PrinterSetup property, not the
    Report.Printer.PrinterSetup.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2015
    Your hint obviously made my day, but testing brought a new problem up
    :-(
    Nico Cizik (Digital Metaphors) benutzte seine Tastatur und gab ein :
This discussion has been closed.