ProgressBar
I have to use for several reasons for all of my reports the method
FReport.PrintToDevices;
MyPreview.ShowModal;
and is working as expected.
But from time to time my reports are very long (sometimes more than 100
pages) and this takes time for generation. A hourglass cursor is not
enough. I would like to place a progressbar onto my Statusbar. But therefore
I have to know the absolutepagecount property at the beginning of the
PrintToDevices process in order to calulate the steps for instance in the
StatusChange event. But I suppose I get the absolutepagecount property far
too late.
Am I right or is there a solution I oversaw?
Thanks in advance
Martin Cremer
FReport.PrintToDevices;
MyPreview.ShowModal;
and is working as expected.
But from time to time my reports are very long (sometimes more than 100
pages) and this takes time for generation. A hourglass cursor is not
enough. I would like to place a progressbar onto my Statusbar. But therefore
I have to know the absolutepagecount property at the beginning of the
PrintToDevices process in order to calulate the steps for instance in the
StatusChange event. But I suppose I get the absolutepagecount property far
too late.
Am I right or is there a solution I oversaw?
Thanks in advance
Martin Cremer
This discussion has been closed.
Comments
Below is a link to an example of loading a report using a progress bar.
This should get you on the right track. Hope it helps.
http://www.digital-metaphors.com/tips/ProgressBar.zip
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
many thanks for the very fast response.
But you set in this example
FPageCount := 54 as the absolutepagecount and this value is correct.
But in my cases I don't know FPageCount.
Cheers
Martin Cremer