Hi Tim, Yup, same way you have it. I used the example Ralph Alvy had in his book about keeping record count of males / females.
After much experimentation, I’ve found the problem; If I have the “Turn File Off” the RV counter only adds the value 1 on the first additional page, ignoring additional pages. If I do not add “Turn File Off”, then the RV counter works and adds each additional page. Unfortunately, this puts me back to the report actually printing twice. Yes, DP generates page break natively. I have the text lines value at 65. Ed. From: Dataperf [mailto:[email protected]] On Behalf Of Tim Rude Sent: Wednesday, July 24, 2019 7:08 AM To: [email protected] Subject: Re: [Dataperf] How to print Total page count in report. Hmm. Do your report structure and formulas look something like this? (I left out non-relevant sections.) ---REPORT BODY--- ---Turn File Off--- ===SUBREPORT LINK/PANEL: 0 1 === ---FIRST PAGE HEADER--- ---Store Value in Report Variable 1 --- [Formula: 1] Dummy page number line ---OTHER PAGE HEADER--- ---Store Value in Report Variable 1 --- [Formula: RV1+1] Dummy page number line ---REPORT BODY--- Blah Blah Blah ===END OF SUBREPORT=== ---Turn File On--- ---Set Page Number To: 1 --- ===SUBREPORT LINK/PANEL: 0 1 === ---FIRST PAGE HEADER--- ---OTHER PAGE HEADER--- ---Include Header Before Data--- Page [PgNum GZZZZZ9;;B] of [RV1 GZZZZZ9;;B] ---REPORT BODY--- Blah Blah Blah ===END OF SUBREPORT=== ---TWO-LEVEL FOOTER--- Also, are the page breaks being generated by DP natively because of your Report Settings item 7 Text Lines value? Tim Rude On 7/23/2019 5:40 PM, Ed Marfil, MAST UNITED wrote: Hi Tim, I spoke too soon about getting the page total working. The RV in the Other Page Header to add 1 to the RV in the First Page Header only adds exactly 1 and does not keep adding on after page 2. Thus even if there are more than 2 pages in the report, it counts total only 2. Any suggestions? Ed.
_______________________________________________ Dataperf mailing list [email protected] http://lists.dataperfect.nl/cgi-bin/mailman/listinfo/dataperf
