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

separate print jobs for multiple copies

edited August 2001 in General
Hi!

I have a problem printing a one page report with multiple copies to a
printer that has automatic duplexing activated.

It seems that RB only creates one print job and the printer driver then
arranges the pages and decides to print them on one sheet of paper using
the duplex function.

Is there any way to let RB create separate print jobs if the user selects
more than one copy?

Any help is appreciated.

TIA

Thiemo

--
*****************
Thiemo Sammern
Lexiter GmbH
Salzburg, Austria
tsamm@lexiter.com
*****************

Comments

  • edited August 2001
    You'll need to call Report.Print twice if you want two separate print jobs
    created.

    Is Report.PrinterSetup.Duplex set to dpNone? You could try to generate a
    blank page after the first report prints. In the Report.BeforePrint event,
    you can set the visibility of the summary band by checking to see if you are
    printing to the printer with

    if (Report.DeviceType = dtPrinter) then

    Place a subreport in the summary band of the report, so that it takes up a
    full page. Resize the detail band of the subreport to be the page height.
    One detail band should generate even if it doens't print anything.

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited August 2001
    Hi

    Tanks for your help but these solutions don't work for me. :-(

    I want my users to select the printer, enter the number of copies and
    maybe change the printer settings, so I set the "ShowPrintDialog"
    property to "True". So I don't know the number of copies the user wants
    when I call the Report.Print method because the user enters the number of
    copies in the Print-Dialog that shows up after I call Report.Print.

    If I could call the Print-Dialog without printing, then that would solve
    my problem...

    I also can't work with blank dummy pages because the length of the report
    is variable, it can be anything from one to 50 pages...

    Any more suggestions?

    TIA

    Thiemo

    In article <8EAE82296ACCD311A039005004E0CAC0048FBC@DMSERVER>,
    support@digital-metaphors.com says...

    --
    *****************
    Thiemo Sammern
    Lexiter GmbH
    Salzburg, Austria
    tsamm@lexiter.com
    *****************
  • edited August 2001
    You can launch the print dialog as in the main reports demo #123. I made a
    modified version of this demo which reads the copies from the dialog and
    prints the report to the printer the specified number of times as separate
    print jobs:

    http://www.digital-metaphors.com/tips/BreakCopiesIntoJobs.zip


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited August 2001

This discussion has been closed.