Error exporting PDF

Hi,

i get an error exporting a grid to pdf: 
     Uncaught (in promise) Error: ArgumentOutOfRangeException:index, The character is not supported by the font.
    at e.items (pdfexport-3452e3.min.js:1)
    at i.getCharWidthInternal (pdfexport-3452e3.min.js:1)

Same happens if i not specify a specific style.
PdfExportProperties ExportProperties = new PdfExportProperties();
PdfTheme Theme = new PdfTheme();

PdfThemeStyle RecordThemeStyle = new PdfThemeStyle() {
FontColor = "#000000",
FontName = "Calibri",
FontSize = 12
};

Theme.Header = RecordThemeStyle;
Theme.Record = RecordThemeStyle;
Theme.Caption = RecordThemeStyle;

ExportProperties.Theme = Theme;

await Grid.PdfExport(ExportProperties);

1 Reply

VN Vignesh Natarajan Syncfusion Team March 30, 2020 08:45 AM UTC

Hi Nils,  

Thanks for contacting Syncfusion support.  

Query: “i get an error exporting a grid to pdf:  
 
From your query we understand that you are facing issue while exporting the Grid. In our latest version 18.1.0.36-beta we are facing some issues while exporting the Grid using external buttons, which we have considered as an issue. But Grid will be exported properly while using Toolbar button (refer the below sample). So kindly share the following details which will be helpful for us to validate the issue at our end.  


  1. Are using external button click to export the Grid?.
  2. Share the Grid code example.
  3. Have you hided any column in the Grid?
  4. Share the full stack trace of the reported issue.
  5. If possible try to reproduce the reported issue in above sample. Or share issue reproducible sample.
 
Requested details will be helpful for us to validate the reported issue at our end and provide solution as soon as possible.  

Regards, 
Vignesh Natarajan. 


Loader.
Up arrow icon