Quote:
quote:Originally posted by denis74hd
Sorry, i've been not clear...
I need to know how many pages htere are in my report FROM my C# code, out of my report (i print already those special fields in my report)
Ty for ur time :)
a lost soul
|
I would use the following chunk of code in the onload event
If viewstate("maxPage") Is Nothing Then
CrystalReportViewer1.ShowLastPage()
CrystalReportViewer1.ShowFirstPage()
End If
Then in the CrystalReportViewer1_Navigate Event
If viewstate("maxPage") Is Nothing Then
viewstate.Add("maxPage", e.NewPageNumber)
End If
U then have a max page number, not elegant but was only solution i could come up with.