使用报告查看器的报告中的总页数 [英] Total pages in a report using Report Viewer
本文介绍了使用报告查看器的报告中的总页数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想获取一个表单的总页数,放在Report查看器..
I want to get the total number of pages in a form, which is placed in Report Viewer..
我用了这个代码,实际上报告有 5 页,但我只有一页.
I used this code, actually the report has 5 pages but I got only one page.
int t=int T = objReportViewer.LocalReport.GetTotalPages();
我怎样才能让它给我全部 5 页?
How can I make it give me all 5 pages?
推荐答案
在带有 ReportViewer 2010 的 C# 中,一个
In C# with ReportViewer 2010, a
reportViewerName.PageCountMode = PageCountMode.Actual;
为我做了这项工作.
PS:刚看到,这个帖子已经1年多了,抱歉!
PS: Just seen, this thread is more than 1 year old, sorry!
这篇关于使用报告查看器的报告中的总页数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文