Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progress bar while running a report
Message
From
11/02/2002 17:29:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
11/02/2002 17:26:47
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00618464
Message ID:
00618605
Views:
11
>>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.

BTW, having a bar named "Progress", that brings fond memories of the way enterprises were named back home, eh?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform