Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why would reports take a long time to display?
Message
From
27/04/2007 15:13:50
 
 
To
21/11/2005 13:17:23
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064884
Message ID:
01220552
Views:
36
Hi,

I realize this thread is tres old but wanted to try this out....could not find the source files though for the "Report Output" project anyhere in my installation. Is this something that ships optionally or I have to download from MSFT? I wanted to insert the code in the DoStatus() method as per below.

Thanks,
Albert Gostick


>Hi
>There is a solution which preserves both speed and user feedback.
>You need to modify updatelistener class from ReportOutput application and add a new property nLastPercent, default 0
>
>Then , in DoStatus() method, add lines as below :
>
>IF (NOT (THIS.QuietMode or ;
>	(THIS.IsRunning AND THIS.CommandClauses.NoDialog)))
>
>	IF this.nLastPercent <> CEILING(this.percentDone*100)
>		this.nlastpercent = CEILING(this.percentDone*100)
>	ELSE
>		RETURN
>	ENDIF
>...
>
>
>What I've noticed when I designed my report preview with search was that the DoStatus() method is called very often (I believe that is called for every record in source alias) and the PercentDone property doesn't change to much from a call to the other. I think it represents total_records/processed/100. So I added a check, to update thermometer only for integer percents.
>
>The speed is very good, comparable with NODIALOG clause
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform