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

TotalPageNumber

Status
Not open for further replies.

madcrow74

Programmer
Joined
Sep 25, 2003
Messages
18
Location
IT
Hi,
how can i know how many pages are going printed? i need this value to use it in my C# code...

Ty, a lost soul...
 
If you know the structure of the report, the total number of pages can sometimes be calculated based on number of records returned by SQL. If there are groups in the report, often it is possible to know how many of them there will be. The report can be desigen in a way to make the number of pages more certain. For example, you can specify the number of records to be printed on each page.
If it is just some existing report of which structure nothing is known, I don't think there is a way to know in advance how many pages it going to print.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top