只需一步,快速开始
Bella.Yuan
超级版主
136
6822
1万
金币
主题
帖子
//获取报表文件System.IO.FileInfo rptPath = new System.IO.FileInfo(@"0425.rdlx");GrapeCity.ActiveReports.PageReport report = new GrapeCity.ActiveReports.PageReport(rptPath); //修改文本框的值 GrapeCity.ActiveReports.PageReportModel.ReportItem item = report.Report.Body.ReportItems["文本框7"]; GrapeCity.ActiveReports.PageReportModel.TextBox text = new GrapeCity.ActiveReports.PageReportModel.TextBox(); text = (GrapeCity.ActiveReports.PageReportModel.TextBox)item; text.Value = "kkkkkkkkkkk"; //展示报表 this.viewer1.LoadDocument(report.Document);
//获取报表文件
System.IO.FileInfo rptPath = new System.IO.FileInfo(@"0425.rdlx");
GrapeCity.ActiveReports.PageReport report = new GrapeCity.ActiveReports.PageReport(rptPath);
//修改文本框的值 GrapeCity.ActiveReports.PageReportModel.ReportItem item = report.Report.Body.ReportItems["文本框7"]; GrapeCity.ActiveReports.PageReportModel.TextBox text = new GrapeCity.ActiveReports.PageReportModel.TextBox(); text = (GrapeCity.ActiveReports.PageReportModel.TextBox)item; text.Value = "kkkkkkkkkkk"; //展示报表
this.viewer1.LoadDocument(report.Document);
System.IO.FileInfo rptPath = new System.IO.FileInfo(@"0425.rdlx"); GrapeCity.ActiveReports.PageReport report = new GrapeCity.ActiveReports.PageReport(rptPath); //获取报表文件中的表格组件 GrapeCity.ActiveReports.PageReportModel.ReportItem item = report.Report.Body.ReportItems["表格1"]; //定义3个文本框,用来修改值 GrapeCity.ActiveReports.PageReportModel.TextBox textHeader = new GrapeCity.ActiveReports.PageReportModel.TextBox(); GrapeCity.ActiveReports.PageReportModel.TextBox textDetail = new GrapeCity.ActiveReports.PageReportModel.TextBox(); GrapeCity.ActiveReports.PageReportModel.TextBox textFooter = new GrapeCity.ActiveReports.PageReportModel.TextBox();
您需要 登录 才可以下载或查看,没有帐号?立即注册
关注“葡萄城社区”
西安葡萄城软件有限公司 专业的软件开发技术和低代码平台提供商
陕ICP备2020018819号 | 陕公网安备:61019002000258 | 隐私政策 | 网站地图
邮箱: info.xa@grapecity.com | © 2024 葡萄城软件,保留所有权利
Archiver| 手机版| 小黑屋|