Posted 17 July 2018, 11:57 pm EST
ActiveReports 6 Export PDF not work on Windows10 Recent Update
Forums Home / ActiveReports / General Discussion
Posted by: owenliu07017 on 17 July 2018, 11:57 pm EST
Posted 17 July 2018, 11:57 pm EST
ActiveReports 6 Export PDF not work on Windows10 Recent Update
Posted 18 July 2018, 12:00 am EST
I use ActiveReports 6 generate ar6 reports, when export to pdf file, it alaways throw exception on Windows 10(Version 1803)
but on WindowsXP, Windows 7, Widows early version is success
Exception stack like bellow
System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at #mqc.#Vqc.#U.#Yqc.#3Yb(#Esp fontId)
at #mqc.#Vqc.#RZc(Int32 fontIndex, String fontName, FontStyle fontStyle, Single sizeInPoints, Boolean vertical)
at DataDynamics.ActiveReports.Export.Pdf.PdfExport.#7pk(Document document, Stream stream, String pageRange)
at DataDynamics.ActiveReports.Export.Pdf.PdfExport.Export(Document document, Stream stream, String pageRange)
at DataDynamics.ActiveReports.Export.Pdf.PdfExport.Export(Document document, Stream stream)
Posted 18 July 2018, 7:49 am EST
Hello Owen,
This is the known issue of AR. However, it has been fixed in the latest version of AR. As a workaround, you can replace the following stylesheet in the designer code of section report:
this.StyleSheet.Add(new DDCssLib.StyleSheetRule("", "Normal"))
With
this.StyleSheet.Add(new DDCssLib.StyleSheetRule("font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" +
"l; font-size: 10pt; color: Black; text-align: left; vertical-align: top; ddo-cha" +
"r-set: 1", "Normal"));
In case no stylesheet exists in designer code then just add the above stylesheet.
Hope it helps.
Thanks,
Mohit