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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Total count of Horizontal page?

Status
Not open for further replies.

ellman

Programmer
Oct 26, 2006
3
SE
Hi all,
I have a crosstab report that spans (horizontal) over several pages, I use the field "Horizontal Page Number" but that (of course) only shows the current page number.

Is there anyway to count and show the total number of horizontal pages? (like the special field "Total Page Count")

/Ellman
 
Horizontal Page Number isn't available for formulas. However, try adding a formula like this in the section containing your crosstab:

whilereadingrecords;
numbervar cnt := cnt + 1;
numbervar cols := 6; //number of columns per crosstab page
numbervar max :=
if int(cnt/cols) = cnt/cols then
int(cnt/cols) else
int(cnt/cols)+1

This requires you to plug in the number of columns per page, and for the number of columns to be the same per page.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top