Slow form with TppReport creation
Hello,
I have a form what has a TppReport. The application runs on Windows 2000
professional.
Well, when I open the form, it takes more time to show itself (30 seconds).
I suppose this happend is because I have as default printer a net printer
what is turned off. If I turn on this printer the form opens fast.
I need to look report preview although the printer does not work.
What can I do to solve this behavior?
Thanks
Josep Sol?
I have a form what has a TppReport. The application runs on Windows 2000
professional.
Well, when I open the form, it takes more time to show itself (30 seconds).
I suppose this happend is because I have as default printer a net printer
what is turned off. If I turn on this printer the form opens fast.
I need to look report preview although the printer does not work.
What can I do to solve this behavior?
Thanks
Josep Sol?
This discussion has been closed.
Comments
Which version of ReportBuilder are you using? In our testing over a network
printer, the printing was equally fast when the printer was turned off.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I'm using 7.03. In my case PC where is printer connected is turned off.
Thanks
P.D. I'm registered user. Where can I donwload the lastest version ? Thanks
again!!!
I was able to recreate this issue and it seems that the
GetDeviceCapabilities API call hangs a little when making requests from the
printer driver when that printer's computer is shut off. However once
ReportBuilder gathers this information the first time, it caches it so the
slow loading will only occur once. This is really all that can be done
about this issue from our end.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks Nico,
Is there any Reportbuilder call to cache this information? I tell you
because I will put this call at the beginning of my application.
Application will seem faster.
Thanks. (Again)
with ppReport1 do begin
Printer.Initialize;
end;
in the formshow. The delay is absorbed in the normal application
start-up that the end user expects. Opening actual reports later
in the application is very fast.
The ppReport1 is not an actual report it's just the unchanged component.
Jon
Yes, if you initialize the printer object before you actually print any
reports, the information will be cached and there should be no delay when
you do decide to print.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com