Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WhilePrinting & WhileReading 1

Status
Not open for further replies.

CTLReporting

Technical User
Jul 17, 2003
17
US
Could someone please explain these two? And the advantage they have over just using forumlas rather than defining when they run during the report?

I know WhilePrintingRecords runs AFTER the database read, and WhileReadingRecords runs BEFORE the printing of data. If I am wrong with this, that could be a reason why I don't really know any use for these two functions.

CTL Reports Group,
Running Crystal Reports 8.0 and 8.5
Bentonville, AR
FoodLabReports@ctlusa.net
 
The advantage of using "WhilePrintingRecords;" is that it ensures the formula evaluates in the order that the records show on the report.
This is useful in cases such as a formula referring to the previous or next record values (using the Previous() or Next() functions).

One of the typical suspects you should consider when a formula is returning unexpected results is that perhaps you need to insert "WhilePrintingRecords;" in it...

The advantage of using "WhileReadingRecords;" is that since the formula is evaluated early, it is available for early actions such as record selection formulas.

Cheers,
- Ido

CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Sounds Good, and since I have yet to do any work with previous or next or had any need for formulas in record selection, that is probably why I do not know much about these two functions. (I've only been working with Crystal for about 3 months)

Thank you for your explanation.

And I would just like to say this forum/website is amazingly fast. And I prefer it to the Crystal Decisions web forum. I've had 2 questions answered in a matter of minutes before I have had one looked at on the crystal forum. The members here are so much more professional and educated. Cheers to All!

CTL Reports Group,
Running Crystal Reports 8.0 and 8.5
Bentonville, AR
FoodLabReports@ctlusa.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top