PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Progress of a report
Progress of a report
Iniciado por guest, 14,nov. 2017 11:09 - 4 respuestas
Publicado el 14,noviembre 2017 - 11:09
WD22

Good Morning,

Does anyone have any tips about the best way (if there is one) to show the user the progress of a report while it's running? I have some reports that can, given the parameters supplied by the user, take some time to run and it would be useful for them to see how long they might have to wait.

Cheers
Reg
Publicado el 14,noviembre 2017 - 12:51
Hi Reg,

this is what I would try :

- Declare a gpiCurrentPage variable (Global to Project)
- in the project code (page header are BY EXAMPLE), increment gpiCurrentPage
- in the window starting the report, and BEFORE doing the iprintReport, start a timer
- in the timer code, display the value of gpiCurrentPage in a static saying something like 'Currently printing page X', with X being replaced by gpiCurrentPage

Best regards
Publicado el 14,noviembre 2017 - 12:58
Hi Fabrice,

Thanks for this. Where you say "in the project code (page header are BY Example) ..." do you mean "in the report code (page header..."?

Kind Regards
Reg
Publicado el 14,noviembre 2017 - 13:51
yes of course... report, not project ...bad fingers....baaaad!

:-)
Publicado el 14,noviembre 2017 - 13:53
:-)

Magic, thanks again for you help Fabrice...