双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

win64位操作系统reportView显示怎么变成这样?

alex_messer alex_messer 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
测试代码如下:
DataTable dt = new DataTable();
string rptFile = System.Windows.Forms.Application.StartupPath + @"\ZTO.rdlc";
reportViewer1.LocalReport.ReportPath = rptFile;

ReportDataSource source = new ReportDataSource("DataSet1", dt);
reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.DataSources.Add(source);

reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.Percent;
this.reportViewer1.ZoomPercent = 100;
reportViewer1.RefreshReport();

显示结果

它的视图显示超过的窗体大小。怎么回事? 求解
...全文

相关推荐

评论
收藏 已收藏
分享
返回顶部
alex_messer
C# 111,129 成员 642,540 内容