Hi,
I don't know if this as been talked befored,
In Nopcommerce 1.90 while trying to export customer invoice to pdf, nothing happens, but on the error log, it shows this:
? Log type: CustomerError
? Severity: 11
? Message: Error generating PDF
? Exception: System.Security.SecurityException: Request failed. at PdfSharp.Fonts.OpenType.FontData.CreateGdiFontImage(XFont font, XPdfFontOptions options) at PdfSharp.Fonts.OpenType.FontData..ctor(XFont font, XPdfFontOptions options) at PdfSharp.Fonts.OpenType.OpenTypeDescriptor..ctor(XFont font, XPdfFontOptions options) at PdfSharp.Fonts.OpenType.OpenTypeDescriptor..ctor(XFont font) at PdfSharp.Fonts.FontDescriptorStock.CreateDescriptor(XFont font) at PdfSharp.Drawing.XFont.get_Metrics() at PdfSharp.Drawing.XFont.Initialize() at PdfSharp.Drawing.XFont..ctor(String familyName, Double emSize, XFontStyle style, XPdfFontOptions pdfOptions) at MigraDoc.Rendering.FontHandler.FontToXFont(Font font, XPrivateFontCollection pfc, PdfFontEncoding encoding, PdfFontEmbedding fontEmbedding) at MigraDoc.Rendering.ParagraphRenderer.get_CurrentFont() at MigraDoc.Rendering.ParagraphRenderer.CalcCurrentVerticalInfo() at MigraDoc.Rendering.ParagraphRenderer.InitFormat(Area area, FormatInfo previousFormatInfo) at MigraDoc.Rendering.ParagraphRenderer.Format(Area area, FormatInfo previousFormatInfo) at MigraDoc.Rendering.TopDownFormatter.FormatOnAreas(XGraphics gfx, Boolean topLevel) at MigraDoc.Rendering.FormattedCell.Format(XGraphics gfx) at MigraDoc.Rendering.TableRenderer.FormatCells() at MigraDoc.Rendering.TableRenderer.InitFormat(Area area, FormatInfo previousFormatInfo) at MigraDoc.Rendering.TableRenderer.Format(Area area, FormatInfo previousFormatInfo) at MigraDoc.Rendering.TopDownFormatter.FormatOnAreas(XGraphics gfx, Boolean topLevel) at MigraDoc.Rendering.FormattedDocument.Format(XGraphics gfx) at MigraDoc.Rendering.DocumentRenderer.PrepareDocument() at MigraDoc.Rendering.PdfDocumentRenderer.PrepareDocumentRenderer(Boolean prepareCompletely) at MigraDoc.Rendering.PdfDocumentRenderer.PrepareRenderPages() at MigraDoc.Rendering.PdfDocumentRenderer.RenderDocument() at NopSolutions.NopCommerce.BusinessLogic.Utils.PDFHelper.PrintOrderToPdf(Order order, Int32 languageId, String filePath) at NopSolutions.NopCommerce.Web.Modules.OrderDetailsControl.lbPDFInvoice_Click(Object sender, EventArgs e) The action that failed was: Demand The type of the first permission that failed was: System.Security.PermissionSet The Zone of the assembly that failed was: MyComputer
Any idea?
Thanks in advance,
Manuel Seromenho