在RDLC报表中对纸张的设置

RDLC报表是存放成XML文件格式的,这一点你可以直接打开RDLC报表文件看一下,而且在使用时,通过ReportViewer来读取报表并与数据源进行合成,也就是说RDLC是定义了一个格式,那就不能通过代码一类的进行设置,除非你直接改XML. 
你可以在设计报表的时候来定义报表的大小,建议的做法是在系统中增加自己所需要的纸张类型(在打印机中的服务器属性),然后在指定报表也是这种尺寸(在RDLC报表设计中,点一下设计窗口中纸张外的地方,改属性的PageSize),就可以了。

对RDLC文件的调用,对文件的显示及设置均通过ReportViewer:

            this.reportViewer1.RefreshReport();
            //设置打印布局模式,显示物理页面大小
            this.reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
            //缩放模式为百分比,以100%方式显示
            this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.Percent;
            this.reportViewer1.ZoomPercent = 100;


程序运行时直接显示如下,没有对窗口有任何的操作:

原文地址:http://hi.baidu.com/qdseashore/item/ad12be2849a328ceddf69a5d

原文地址:https://www.cnblogs.com/albert1017/p/3612164.html