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

Print 2 reports to same printer

edited May 2007 in General
Hi

I have two reports that I print consecutive. I want the printdialog to
only show for the first report. If I select an other than my default
printer for the first report, the second report goes to my default
printer.

Is it possible to let the second report go to the same printer as the
first one, without showing the extra printdialog?

Using BDS2006, RB10.06

Arno
--

Comments

  • edited May 2007
    Hi Arno,

    1. After the first report prints, you could assign the PrinterSetup to the
    second report and print it with the ShowPrintDialog property set to False.

    2. Another option would be to print both reports in the same print job
    using the technique used in demo 123 located in the \RBuilder\Demos\1.
    Reports\... directory.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2007
    Nico Cizik (Digital Metaphors) wrote:


    Thanks Nico

    --
  • edited May 2007
    Nico Cizik (Digital Metaphors) wrote:


    Hi Nico

    I used the second approach, since the first one still printed the
    second report to my default printer.
    This works fine, except for one problem. I have a vtPageSetDesc
    systemvariable on my report. On the first page this says
    page 1 of 1, the second page says page 2 of 2 etc. Any way to solve
    this?

    Arno

    --
  • edited May 2007
    Hi Arno,

    Be sure your report's PassSetting property is set to psTwoPass.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2007
    Nico Cizik (Digital Metaphors) wrote:


    Duh, sometimes I feel really stupid. Thanks again.

    --
This discussion has been closed.