Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Progress bar while running a report
Message
De
11/02/2002 17:26:47
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00618464
Message ID:
00618604
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Steve,
>
>Actually, here is the deal: we have a class, called Reporter. This class uses MetaFile, which describes our reports. In this MetaFile there is InitExp. In this InitExp I put a call to SpecialMtd. So, I guess, I still have an access to this in report itself and it would refer to Reporter class. So, it would be a good idea to add some visual progress bar to this class. Unfortunately, this is not my application and the original developer is put on hold...

Somewhere in the code, before your report is run (IOW, before the Report Form command), create a private var oProgressBar which will be the reference to your progress bar. Set progressbar's .max=reccount() (of the cursor the report runs on).
In the report, pick an appropriate On Entry or On Exit expression (page footer, or group footer, whichever may suit you) and put oProgressBar.Update(recno()) there. Make sure you show the progress bar before the report, and that you hide it (or destroy) after. That's it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform