我想获取表单中的页面总数,该页面位于Report中 观众..
我使用了这段代码,实际上报告有5页,但我只有一页。
int t=int T = objReportViewer.LocalReport.GetTotalPages();
如何让它给我5页?
答案 0 :(得分:2)
在C#中使用ReportViewer 2010,
reportViewerName.PageCountMode = PageCountMode.Actual;
为我做了这份工作。
PS:刚看到,这个帖子已经超过1岁了,抱歉!答案 1 :(得分:1)
文本框示例:=Globals.PageNumber & " of " & Globals.TotalPages