找回密码
 立即注册

QQ登录

只需一步,快速开始

progame

注册会员

10

主题

47

帖子

105

积分

注册会员

积分
105

活字格认证

progame
注册会员   /  发表于:2017-1-9 11:20  /   查看:3979  /  回复:9
sub report在同一页的内容,pdf正常, html导出时跑到页的下面去并且因为只有一页 overflow hide 导致这部分不可见了
ar v11版本

9 个回复

倒序浏览
progame
注册会员   /  发表于:2017-1-9 11:22:20
沙发
相关文件见附件

本帖子中包含更多资源

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

x
回复 使用道具 举报
progame
注册会员   /  发表于:2017-1-9 11:43:20
板凳
因为我们现在把html当成预览 这样导致问题很大
回复 使用道具 举报
Lenka.Guo讲师达人认证 悬赏达人认证
超级版主   /  发表于:2017-1-9 13:48:38
地板
本帖最后由 Lenka.Guo 于 2017-1-9 15:19 编辑

您指的是如图,您使用的是代码导出还是 设计器中自带的导出功能?建议您使用 报表设计器  打开报表,在预览报表时导出报表,看是否正常?





回复 使用道具 举报
progame
注册会员   /  发表于:2017-1-9 14:22:05
5#
HtmlExport export ReportDocument
回复 使用道具 举报
Lenka.Guo讲师达人认证 悬赏达人认证
超级版主   /  发表于:2017-1-9 16:26:15
6#
progame 发表于 2017-1-9 14:22
HtmlExport export ReportDocument

您替换代码试试:
  1. rapeCity.ActiveReports.PageReport report = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(@"C:\Sample_PageReport.rdlx"));
  2. GrapeCity.ActiveReports.Document.PageDocument reportDocument = new GrapeCity.ActiveReports.Document.PageDocument(report);

  3. // Create a directory
  4. System.IO.DirectoryInfo outputDirectory = new System.IO.DirectoryInfo(@"C:\MyHTML");
  5. outputDirectory.Create();

  6. // Provide settings for your rendering output.
  7. GrapeCity.ActiveReports.Export.Html.Page.Settings htmlSetting = new GrapeCity.ActiveReports.Export.Html.Page.Settings();
  8. GrapeCity.ActiveReports.Extensibility.Rendering.ISettings setting = htmlSetting;

  9. //Set the rendering extension and render the report.
  10. GrapeCity.ActiveReports.Export.Html.Page.HtmlRenderingExtension htmlRenderingExtension = new GrapeCity.ActiveReports.Export.Html.Page.HtmlRenderingExtension();
  11. GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider outputProvider = new GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider(outputDirectory, System.IO.Path.GetFileNameWithoutExtension(outputDirectory.Name));
  12. reportDocument.Render(htmlRenderingExtension, outputProvider, htmlSetting);
复制代码


回复 使用道具 举报
progame
注册会员   /  发表于:2017-1-9 18:41:19
7#
我是用统一的ReportExport接口导出的 HtmlRenderingExtension和HtmlExport有何区别
回复 使用道具 举报
Lenka.Guo讲师达人认证 悬赏达人认证
超级版主   /  发表于:2017-1-10 10:51:29
8#
progame 发表于 2017-1-9 18:41
我是用统一的ReportExport接口导出的 HtmlRenderingExtension和HtmlExport有何区别

HTMLRenderingExtension 是通用的,而且能够保证格式的百分之百匹配。
回复 使用道具 举报
progame
注册会员   /  发表于:2017-1-10 23:58:55
9#
我用的是SectionDocument 没有这个Render方法
回复 使用道具 举报
Lenka.Guo讲师达人认证 悬赏达人认证
超级版主   /  发表于:2017-1-11 11:59:39
10#
。。。
我还以为是页面报表或者RDL报表,那您把报表模板和数据发过来,我在这边测试下
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部