找回密码
 立即注册

QQ登录

只需一步,快速开始

lzlg

银牌会员

5

主题

9

帖子

2943

积分

银牌会员

积分
2943

活字格认证

lzlg
银牌会员   /  发表于:2014-11-2 16:35  /   查看:9391  /  回复:11
如题

11 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2014-11-3 10:44:00
沙发
回复 1楼lzlg的帖子

区域报表需要使用 SetionDocument AddRange 方法添加,页面报表需要通过SubReport添加,详细请参考:
http://blog.gcpowertools.com.cn/ ... le-pagereports.aspx

为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢
回复 使用道具 举报
lzlg
银牌会员   /  发表于:2014-11-3 11:48:00
板凳
回复 2楼iceman的帖子

您好,我用的是CPL的,不能用SubReport和SetionDocument 啊,怎么办?
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2014-11-3 18:05:00
地板
回复 3楼lzlg的帖子

连续样式页面报表也提供了SubReport,请问您使用的是什么版本?我这边使用的是 AR 8.1.414.0
回复 使用道具 举报
lzlg
银牌会员   /  发表于:2014-11-5 16:51:00
5#
回复 4楼iceman的帖子

我的是7.0的,固定页面报表没有看到Subreport
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2014-11-6 14:09:00
6#
回复 5楼lzlg的帖子

回复 4楼lzlg的帖子

我使用链接中 7.0 版本,添加 固定页面报表(Fixed PageReport )测试可以添加SubReport:
http://www.gcpowertools.com.cn/d ... r%20v7.2.7725.0.msi

测试代码:
  1.            
  2.             PageReport _pageReport = new PageReport(new System.IO.FileInfo(Application.StartupPath + "..\\..\\..\\PageReport1.rdlx"));
  3.             _pageReport.Run();

  4.             GrapeCity.ActiveReports.PageReportModel.Subreport subreport = new GrapeCity.ActiveReports.PageReportModel.Subreport();
  5.             subreport.ReportName = Application.StartupPath + "..\\..\\..\\PageReport2.rdlx";
  6.             _pageReport.Report.Body.ReportItems.Add(subreport);

  7.             GrapeCity.ActiveReports.Document.PageDocument runtime = new GrapeCity.ActiveReports.Document.PageDocument(_pageReport);
  8.             viewer1.LoadDocument(runtime);
复制代码


为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2014-11-10 16:58:00
7#
回复 5楼lzlg的帖子

Demo:
编辑环境 VS2013 + C# + AR 7.0 SP2

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
lzlg
银牌会员   /  发表于:2014-11-10 17:31:00
8#
回复 7楼iceman的帖子



这个是在WINFORM里面的,两个报表是重叠的呢



这个是在webform里面的,提示:报表错误

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2014-11-10 17:41:00
9#
回复 8楼lzlg的帖子

WinForms 中应该是版本问题,在我这边测试是可以正常显示的,您可以更新到 6# 版本测试。
WebForms 工程明天会上传给您。
回复 使用道具 举报
iceman
社区贡献组   /  发表于:2014-11-11 14:50:00
10#
回复 8楼lzlg的帖子

您好,

在 Web 中这个问题我已经重现了,需要联系产品组来调查这个问题,有进一步反馈会第一时间通知您。

谢谢
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部