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

Slow form with TppReport creation

edited December 2004 in General
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?

Comments

  • edited December 2004
    Hi Josep,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2004
    Hello Nico,

    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!!!

  • edited December 2004
    Hi Josep,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2004
    Hi Nico,

    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)

  • edited December 2004
    I put a ppReport on my main form and

    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

  • edited December 2004
    Thanks, that's a good tip 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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.