找回密码
 立即注册

QQ登录

只需一步,快速开始

yjpgyje

初级会员

13

主题

44

帖子

293

积分

初级会员

积分
293

活字格认证

yjpgyje
初级会员   /  发表于:2014-12-16 14:22  /   查看:4544  /  回复:3


如右边图片显示在两张A4纸上.

本帖子中包含更多资源

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

x

3 个回复

倒序浏览
Alice
社区贡献组   /  发表于:2014-12-16 16:08:00
沙发
回复 1楼yjpgyje的帖子

如果需要打印到不同页,可以添加 Page Break 进行分页。
1.下面是实现 SubReport 代码:
  1. //添加 SubReport
  2.             Field subReportField = this._c1r.Fields["SubreportField"];
  3.             C1Report subReport = new C1Report();
  4.             subReport.Load("filename", "reportname");
  5.             subReportField.Subreport = subReport;

  6.             //把 SubReport 添加到 PageFooter 位置
  7.             subReportField.Section = SectionTypeEnum.PageFooter;

  8.            //设置在 SubReport 之前换页
  9.             this._c1r.Sections["PageFooter"].ForcePageBreak = ForcePageBreakEnum.Before;
复制代码

2.还可以参考 C1 随机安装的 Demo:
Documents\ComponentOne Samples\Studio for WinForms\C1Report\C1Report\Cs\SubReportDataSource
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
yjpgyje
初级会员   /  发表于:2014-12-16 16:47:00
板凳
谢谢..搞定了.
回复 使用道具 举报
Alice
社区贡献组   /  发表于:2014-12-16 16:56:00
地板
回复 3楼yjpgyje的帖子

不用客气。
请点击评分,对我的服务做出评价!  5分为非常满意!

葡萄城控件服务团队

官方网站: http://www.gcpowertools.com.cn
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部