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

Network printer issue

edited May 2004 in General
Hi,

I got the following problem: if default printer is set to network printer
the first report takes several seconds to generate. The subsequent reports
are instant. If I set default printer to local the issue disappears.

Comments

  • edited May 2004

    That indicates a performance issue with the printer driver, the first time
    it is loaded and initialized. ReportBuilder caches printer info - that is
    why you only see the slow performance for the first report.

    ReportBuilder uses Win API calls to determine the capabilities of the
    printer. Perhaps the printer driver loads slowly, or responds slowly to the
    Win API calls, and/or the network is slow.

    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited June 2004
    "Nard Moseley (Digital Metaphors)" wrote in
  • edited June 2004

    There is a global TppPrinter object that you can access. Try calling its
    Initialize method.

    example:

    uses
    ppPrintr;

    begin
    ppPrinter.PrinterSetup.PrinterName :=
    ppPrinter.PrinterSetup.PrinterNames[myIndex];
    ppPrinter.Initialize;

    end;


    --

    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com


    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.