Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Visual Studio 2005 中,如何在打印预览模式下直接在 ReportViewer 控件中显示报表?
使用SetDisplayMode()方法:
SetDisplayMode()
MyReportViewer.SetDisplayMode(DisplayMode.PrintLayout);
在 Windows 窗体应用程序中,如果您在 reportviewer 的 RenderingComplete 事件中调用 SetDisplayMode 方法,可能会导致 StackOverflowException。调用该方法的位置不正确。