Posted 14 September 2017, 10:01 am EST
[activereports_archive]
We are using AR 8 Reports and save them as a PDF. It works fine unless we use some special fonts:Univers LT 45 Light, Univers LT 55, Univers LT 65 Bold
We were able to identify that it’s a problem when the fonts are embedded into the PDF. Using the same fonts on the same machine with Microsoft Word and exporting a PDF with embedded fonts works fine. So I think it can’t be a font licensing problem. (Our license.licx is also including all the required components, so it’s neither a AR licensing issue).
Export just works when we exclude those fonts from embedding (.NeverEmbedFonts += “;Univers LT 45 Light;Univers LT 55;Univers LT 65 Bold;”
When we export a Report to PDF using Export.Pdf.Section.PdfExport we get the following exception and the file being exported is not removed but (obviously) corrupt.
System.InvalidOperationException occurred
HResult=-2146233079
Message=Failed to read font data
Source=GrapeCity.ActiveReports.Export.Pdf.v8
StackTrace:
bei #lSr.#TGn.#UGn(#4Dn tableId, Int32 offset, Int32 len)
bei #mqc.#rrc.#zRn(String newFontName, IList
1 charList, #QGn reader, IDictionary
2 glyphMap)bei #mqc.#Vqc.#U.#Yqc.#nxd(#VOn font, String newFontName, IList
1 charList, IDictionary
2 glyphMap)bei #mqc.#Vqc.#U.#0qc.#Hvd(#Yqc fmgr)
bei #mqc.#Vqc.#ivd()
bei DataDynamics.DDLib.PdfEngine.PsPages.Write(#8qc root, #erc writer, #Cqc documentOptions, Int32 headerOffset)
bei #mqc.#8qc.#7Zc(Stream stream, #1rc securityInfo)
bei #mqc.#8qc.#7Zc(Stream stream)
bei GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.#7pk(SectionDocument document, Stream stream, String pageRange, Byte& xmpMetadata)
bei GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.Export(SectionDocument document, Stream stream, String pageRange)
bei GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.Export(SectionDocument document, String filePath, String pageRange)
bei GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.Export(SectionDocument document, String filePath)
bei BW2Technologies.BusinessSuite.Reports.ActiveReport.Reports.ReportBase.SaveAs(String FileName, ReportSaveType Type) in C:\BW2_45\bw2client\BW2BusinessSuite\BusinessSuite\Reports\ActiveReports\Reports\ReportBase.vb:Zeile 2894.
InnerException:
[/activereports_archive]