Posted 24 January 2019, 6:27 pm EST
Error
- Error Description: Parameter is not valid.
- Error Type: System.ArgumentException
- Source: System.Drawing
- Stack Trace:
- at System.Drawing.Graphics.GetHdc()
- at #mqc.#zqc.#Q3m(Font f, #v3m& w)
- at #mqc.#zqc.#Cud(Font font)
- at #mqc.#zqc.#Fk(Font font)
- at #mqc.#zqc..ctor(Font font)
- at #lSr.#SOn.#tMn()
- at #lSr.#iRn.#tMn()
- at DataDynamics.DDLib.PdfEngine.PdfFonts.#U.#Yqc.#WxZ(String fontName, FontStyle fontStyle, Boolean isVertical)
- at DataDynamics.DDLib.PdfEngine.PdfFonts.#U.#Yqc.#RZc(String fontName, FontStyle fontStyle, Boolean isVertical)
- at DataDynamics.DDLib.PdfEngine.PdfFonts.#RZc(Int32 fontIndex, String fontName, FontStyle fontStyle, Single sizeInPoints, Boolean vertical)
- at GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.#7pk(SectionDocument document, Stream stream, String pageRange, Byte[]& xmpMetadata)
- at GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.Export(SectionDocument document, Stream stream, String pageRange)
- at GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.Export(SectionDocument document, Stream stream)
- at StarNet.Core.Reports.ReportExporter.ExportToPdf(ReportBase report, Stream output, String& message)
- Target Site: IntPtr GetHdc()
- in System.Drawing.Graphics, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
using (PdfExport pdf = new PdfExport())
{
pdf.ImageQuality = ImageQuality.Highest;
pdf.Export(m_reportBase.Document, output);
result = true;
}
We are using
GrapeCity.ActiveReports.Web.v10
Any workaround or fix for this?