CrystalReport page count

  • Thread starter Thread starter David Dvali
  • Start date Start date
David,

Crystal offer two 'special fields', Current Page Number and Total Page
Count. You can drag them from the Field Explorer into your report.
Be careful with Total Page Count! Crystal will need to render all pages of
the report in order to show the count in the first apge!

Regards - Octavio
 
No I need to get it programmatically.

Octavio Hernandez said:
David,

Crystal offer two 'special fields', Current Page Number and Total Page
Count. You can drag them from the Field Explorer into your report.
Be careful with Total Page Count! Crystal will need to render all pages of
the report in order to show the count in the first apge!

Regards - Octavio
 
David,

¿From C# code?
What I'd do is to place the two special fields in the adequate sections,
supressing them if you don't need them to appear in the report, and then
obtain thier value using a syntax like (report1.Sections.ReportObjects[j]
as TextObject).Text.

Regards- Octavio
 
Back
Top