找回密码
 立即注册

QQ登录

只需一步,快速开始

progame
注册会员   /  发表于:2017-9-19 16:12:04
16#
并且是memorystream中导出
回复 使用道具 举报
progame
注册会员   /  发表于:2017-9-19 16:10:10
15#
我用的是sectionreport
回复 使用道具 举报
KearneyKang讲师达人认证 悬赏达人认证
超级版主   /  发表于:2017-9-19 15:54:36
14#
您好,您导出换一种导出的方式看看,我们的导出有两种方式一种是Export Filters 还有一种就是Rendering Extensions
相对来说Rendering这种方式更加可靠,更加适合导出。
具体可参考如下代码:System.IO.FileInfo rptPath = new System.IO.FileInfo(@"..\..\PageReport1.rdlx");GrapeCity.ActiveReports.PageReport pageReport = new GrapeCity.ActiveReports.PageReport(rptPath);// Create an output directory.System.IO.DirectoryInfo outputDirectory = new System.IO.DirectoryInfo(@"C:\MyPDF");outputDirectory.Create();// Provide settings for your rendering output.GrapeCity.ActiveReports.Export.Pdf.Page.Settings pdfSetting = new GrapeCity.ActiveReports.Export.Pdf.Page.Settings();// Reduce the report size and report generation time.pdfSetting.OptimizeStatic = true;// Set the rendering extension and render the report.GrapeCity.ActiveReports.Export.Pdf.Page.PdfRenderingExtension pdfRenderingExtension = new GrapeCity.ActiveReports.Export.Pdf.Page.PdfRenderingExtension();GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider outputProvider = new GrapeCity.ActiveReports.Rendering.IO.FileStreamProvider(outputDirectory, System.IO.Path.GetFileNameWithoutExtension(outputDirectory.Name));// Overwrite output file if it already existsoutputProvider.OverwriteOutputFile = true;pageReport.Document.Render(pdfRenderingExtension, outputProvider, pdfSetting);
回复 使用道具 举报
progame
注册会员   /  发表于:2017-9-19 15:45:55
13#
我把IIS应用程序池的权限提升后 和之前错误又有所不同  之前是纸张不生效 导致打印内容跨页了 现在是内容不跨页了 但多了一个空白页
看纸张大小  2种还都是错误的 本来的22和30.48
第一种是21.6和28
第二种是21和29.7
回复 使用道具 举报
progame
注册会员   /  发表于:2017-9-19 15:31:18
12#
导出word tiff pdf 全部出问题 自定义纸张无效
回复 使用道具 举报
progame
注册会员   /  发表于:2017-9-19 15:23:32
11#
我升11.2的原因是11.0生成的HTML错位太严重
参见之前问题贴
http://gcdn.gcpowertools.com.cn/ ... id=28882&extra=
回复 使用道具 举报
progame
注册会员   /  发表于:2017-9-19 15:19:59
10#
在有问题的服务器上用viewer.win预览正常 但导出就都失去了自定义纸张 导出我用的代码是
m_Export.Export(doc.Document, stream);
回复 使用道具 举报
progame
注册会员   /  发表于:2017-9-19 14:56:21
9#
有问题的服务器上只有一个系统默认的打印机 Microsoft XPS Document Writer
系统是windows server 2012 R2
回复 使用道具 举报
progame
注册会员   /  发表于:2017-9-19 14:42:08
8#
另外 不仅PDF 我导出TIFF也一样 纸张大小自定义无效
回复 使用道具 举报
progame
注册会员   /  发表于:2017-9-19 14:40:30
7#
相同的浏览器 都是chrome 我下载到本地再看pdf里的页面属性也是一样 同一个报表同一个数据 升级前11.0正确  11.2使用了A4纸张 但我本机下11.0 11.2都正常
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部