AR10 SP2 下载地址:http://7xqo0u.com1.z0.glb.clouddn.com/ActiveReports/10/ActiveReports.zip?v=201608290931
另外导出PDF代码及DPIX,DPIY 的属性设置:
- System.IO.DirectoryInfo outputDirectory = new System.IO.DirectoryInfo(@"D:\Demo");
- outputDirectory.Create();
- // Provide settings for your rendering output.
- GrapeCity.ActiveReports.Export.Pdf.Page.Settings pdfSetting = new GrapeCity.ActiveReports.Export.Pdf.Page.Settings();
- pdfSetting.DpiX = 500;
- pdfSetting.DpiY = 500;
- GrapeCity.ActiveReports.Extensibility.Rendering.ISettings setting = pdfSetting;
- //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));
- reportDocument.Render(pdfRenderingExtension, outputProvider, pdfSetting);
复制代码
|