progame 发表于 2017-9-19 15:23:32

我升11.2的原因是11.0生成的HTML错位太严重
参见之前问题贴
http://gcdn.gcpowertools.com.cn/forum.php?mod=viewthread&tid=28882&extra=

progame 发表于 2017-9-19 15:31:18

导出word tiff pdf 全部出问题 自定义纸张无效

progame 发表于 2017-9-19 15:45:55

我把IIS应用程序池的权限提升后 和之前错误又有所不同之前是纸张不生效 导致打印内容跨页了 现在是内容不跨页了 但多了一个空白页
看纸张大小2种还都是错误的 本来的22和30.48
第一种是21.6和28
第二种是21和29.7

KearneyKang 发表于 2017-9-19 15:54:36

您好,您导出换一种导出的方式看看,我们的导出有两种方式一种是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 16:10:10

我用的是sectionreport

progame 发表于 2017-9-19 16:12:04

并且是memorystream中导出

KearneyKang 发表于 2017-9-19 17:15:19

现在就是本地可以,发布到服务器上就出错是吧!如果是这样,您换台Win7的服务器试试。
因为您反馈本地测试什么都可以,那可能就是发布的时候可能由于系统不同导致的

progame 发表于 2017-9-19 17:21:33

完全一样的发布包 另外的服务器就可以 然后这台有问题的服务器 在用11.0版本时也是正常的 我现在让它回退到11.0就正常

KearneyKang 发表于 2017-9-19 17:53:48

这问题,我现在也说不好是什么原因导致的。

progame 发表于 2017-9-19 18:31:53

我觉得是不同的电脑环境下获取或者设置纸张大小时出了问题 但你们代码混淆过 我没办法查
页: 1 [2] 3
查看完整版本: ar升到11.2后 pdf 导出纸张认报表里的custom paper size