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

how does report builder manages the "copies" property ?

edited March 2004 in General
Hi there,

I'm using RB7 (7.03) on Delphi6 in laboratories with label printers.
Labels should be printed very fastly.

Unfortunately, it seems that report printer does handle the "number of
copies" the way every other application do.

example :
=> I'm on UltraEdit, I build a document and I print it. In the printer
setup dialog, I set the number of copies to 5 then I print.
The 5 lables are printed in a row and very fastly.

=> With Report Builder now ... I set the copies parameter to 5 then I
print. Whoaaa ... each label is printed at a time and it tooks about 10
times the first example took.

It seems report builder handle each copy as it was a independant report.

Is that possible and what can I do to correct this ?

best regards,

Etienne

Comments

  • edited March 2004
    Hi Etienne,

    The reason you are seeing the behavior is that some printers do not natively
    support copies of documents so by default ReportBuilder will take care of
    this function. To disable this feature and allow your printer to handle
    copying, simply set the published property
    Report.PrinterSettings.DelegateCopies to True. This should speed things up
    for you.


    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2004
    Thanks for your answer,

    unfortunately not ...
    I saw DelegateCopies in a recent post and tried it but it gave the same
    result.

    Best regards,

    Etienne



    In article <40434f0b$1@dm500.>, "Nico Cizik \(Digital Metaphors\)"
  • edited March 2004
    Etienne,

    When DelegateCopies is set to True, ReportBuilder only sends one copy of the
    report to the printer and the printer takes care of printing a certain
    number of copies of that report. See the ppPrintr.pas file inside the
    TppPrinter.PrinterSetupToDevMode method for the source for how the printer's
    DevMode is set. If you are setting the DelegateCopies property to True and
    ReportBuilder is still sending more than one report to the printer, the
    property has either not been set for that specific report template or it is
    being reset somewhere in your code.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2004
    Ok ... I'll check the template because the changing is made just before
    the printing so it's impossible it can be changed between ...

    best regards,

    Etienne

    In article <40436e02$1@dm500.>, "Nico Cizik \(Digital Metaphors\)"
  • edited March 2004
    Hi Etienne,

    Are you loading templates or perhaps using report archives? If so, this
    could be the reason you are loosing this value. Try tracing into the
    ReportBuilder source and see if the printer device thinks DelegateCopies is
    set to True. (ppPrnDev.pas file ... TppPrinterDevice.ReceivePage method.)

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2004
    Ok I checked everything .... even the source code

    the delegatecopeis is set to true, the collation is false
    the preview (and print) happens just after that.

    Report builder still seems to not delegate the copies to the printer...

    Strange,

    Etienne

    In article ,
    etienne@epiconcept.fr says...
  • edited March 2004
    Ok Nico, I think I got the thing ...

    it seems that entering the designermode get rid of those setup.

    When printing directly, it works now.

    so the two problems were :

    1- "incompatible" delegatecopies with collation properties (thanks to
    the code)
    2- delegatecopies available in print, not in designer.

    Thanks for all !

    Etienne

    In article <404377cc$1@dm500.>, "Nico Cizik \(Digital Metaphors\)"
This discussion has been closed.