模版预览效果正常;
导出pdf后,文字效果异常,部分文字自动加粗。
附件中是模版文件。
pdf导出时,不管用下面两种方式的哪一种,导出效果都是一样的:
if (Reportname.Contains("1574752"))
{
DirectoryInfo outputDirectory = new DirectoryInfo(HttpRuntime.AppDomainAppPath + "temFile\\");
GrapeCity.ActiveReports.Export.Pdf.Page.Settings pdfSetting = new GrapeCity.ActiveReports.Export.Pdf.Page.Settings();
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, FileName);
outputProvider.OverwriteOutputFile = true;
rpt.Document.Render(pdfRenderingExtension, outputProvider, pdfSetting);
}
else
pdf.Export(rpt.Document, reportPath);
|