如何实现ReportViewer Zoom Percent - WinForms应用程序? [英] How to achieve the ReportViewer Zoom Percent - WinForms applications?
本文介绍了如何实现ReportViewer Zoom Percent - WinForms应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是VS2010 Windows Forms应用程序。我希望将报告预览25%或35%。可能吗?以下代码仅显示WholePage模式。它不是由ZoomPercent展示的......
感谢您的帮助...
我的代码
Hi,Iam using VS2010 Windows Forms Applications. I wish to PreView the report by 25% or 35%. Is it possible? The below codes showing only "WholePage" mode. It's not showing by ZoomPercent...
Thanks for the helps...
My Codes
reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
reportViewer1.ZoomPercent = 25;
推荐答案
你也是需要设置缩放模式:
You also need to set the zoom mode:
reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.Percent;
这篇关于如何实现ReportViewer Zoom Percent - WinForms应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文