【发布时间】:2010-10-07 20:50:47
【问题描述】:
在 Visual Studio 2005 中,如何在打印预览模式下直接在 ReportViewer 控件中显示报表?
【问题讨论】:
标签: visual-studio-2005 .net-2.0 reportviewer rdlc
在 Visual Studio 2005 中,如何在打印预览模式下直接在 ReportViewer 控件中显示报表?
【问题讨论】:
标签: visual-studio-2005 .net-2.0 reportviewer rdlc
使用SetDisplayMode() 方法:
MyReportViewer.SetDisplayMode(DisplayMode.PrintLayout);
【讨论】:
在 Windows 窗体应用程序中,如果您在 reportviewer 的 RenderingComplete 事件中调用 SetDisplayMode 方法,可能会导致 StackOverflowException。调用该方法的位置不正确。
【讨论】: