OnProgress event and TfrxUserDataset
robertonicchi
ITALY
Hello,
i'd like to show a progress bar when a report is executed. the problem is that i use a TfrxUserDataset. If i remember correctly in this case the report is not able to know how many records will be printed and so can't calculate the progress. Is there a way to manually pass to the report the number of records so the onprogress event can calculate the correct progress value ? Is it possible in FR 6 ?
thanks in advance
Comments
OnProgress is Delphi's event, just use record count in this event. OnProgress called after each prepared page
The onprogress event is not executed. Anyway i think i have solved updating the progressbar in the onfirst, onnext and onprior events of the TfrxUserDataset, using a variable to keep track of the printed records. Actually the PB is not updated for each record but every each second of time.