Home General

Slow 1st time load of rtm file

edited July 2001 in General
Hello All:

We are on Delphi 5/RB Enterprise Version 6.0.

The first time we run a .rtm file, it takes 5 to 8 seconds to calculate
the form. Every report after that runs about instantaneously.

What can be done to speed this up ??? I read in a previous thread that
the Ver 6 fixed this ( we were on version 5.56 ). There was something
mentioned about accessing the printer object too much.


Thank you.


Neil Huhta


What can I do to resolve this ???

Comments

  • edited July 2001
    Hi Neil,
    I noticed an increased delay for my first report using v6.
    The explanation has to do with the later loading of the
    printer driver.

    My work around:
    1. Drop a report component on my opening screen
    2. In On show, force the loading of the driver
    with ppReport1 do begin
    // next statement takes about 5 to 6 secs to execute
    // any statement that requires the printer driver
    // will work
    ColumnWidth := ColumnWidth + 0.0;
    end;
    The time delay is not noticed in the startup of the application.

    When the first report is called, the only delay is then just normal
    for calculating the page.

    HTH for the RTM case as well
    Jon


  • edited July 2001
    Jon:

    I copies your code into my on show event but it has no effect on the 1st
    time load speed of the ppreport1 component.

    The 1st time delay is still long. Can you OR anybody at DIGITAL
    METAPHORS give me any other idea how to trigger the load of the printer
    driver ???

    Thank you.

    Neil Huhta
  • edited July 2001
    Neil,
    I'm not sure that I understand. The ppReport1 component
    that I suggested on the opening screen will exhibit the delay
    (same as before). The only difference is that the delay is
    exhibited at the application load (main screen).

    Are you still finding that the delay occurs when you call up a
    report after the main screen has loaded?

    Jon

  • edited July 2001
    Jon:



    YES

    I pasted your code directly into my app in the on-show event. The
    ppReport1 STILL has a 5-10 second delay on the first report. I timed on-show
    and found that the property change had no effect on on-show speed.

    I am running Windows 2000 which may make some difference as Win2000 has
    some special characteristics with printer drivers.

    It would be great if some of the digital Metaphors staff could comment
    on this situation.



    Neil Huhta
  • edited July 2001
    "Huhtaman" wrote in message
  • edited July 2001
    Hmmm! not sure as I use Win98
    You might look at a previous thread where Nard addressed
    the problem as I found it:
    "Slow report load v6.0"
    Jon

This discussion has been closed.