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.
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.
Comments
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
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