Retrieving current page number and total pages from Crystal Report

Current page number and total pages from Crystal Report:




To show Current page / Total No of page: Go To Your Solution Field Explorer->Special Fields From here Drag "Page N of M" To you Crystal Report.

That's it. It will work for u. No need to do any extra coding for it.


CrystalReportViewers ViewInfo object, as below:

CrystalDecisions.Web.ViewInfo vi = crViewer.ViewInfo;

pagenum.Text = vi.PageNumber + " of " + vi.LastPageNumber;





Other Crystal Report related Post:

Comments