请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

zhanglinshuang

金牌服务用户

14

主题

38

帖子

148

积分

金牌服务用户

积分
148
zhanglinshuang
金牌服务用户   /  发表于:2025-5-29 18:08  /   查看:116  /  回复:1
1金币
本帖最后由 zhanglinshuang 于 2025-5-29 18:14 编辑

                FileInfo info = new System.IO.FileInfo(m_strCurReport);
                this.m_curPage = new GrapeCity.ActiveReports.PageReport(info);
                this.m_curPage.Document.LocateDataSource += new GrapeCity.ActiveReports.LocateDataSourceEventHandler(locateData);
                var unit = GrapeCity.ActiveReports.PageReportModel.Length.Unit.Centimeters;
                this.m_curPage.Report.TopMargin = new GrapeCity.ActiveReports.PageReportModel.Length(m_reportSetting.topMargins, unit);
                this.m_curPage.Report.LeftMargin = new GrapeCity.ActiveReports.PageReportModel.Length(m_reportSetting.leftMargins, unit);
                this.m_curPage.Report.BottomMargin = new GrapeCity.ActiveReports.PageReportModel.Length(m_reportSetting.bottomMargins, unit);
                this.m_curPage.Report.RightMargin = new GrapeCity.ActiveReports.PageReportModel.Length(m_reportSetting.rightMargins, unit);
                this.m_curPage.Run();
                this.m_pageReportViewer.LoadDocument(m_curPage.Document);

1 个回复

倒序浏览
Felix.LiWyn认证
超级版主   /  发表于:2025-5-29 18:22:41
沙发
您试试改report.Document.PageReport.Report.***
然后 load一下
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部