We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Error creating PDF file in Blazor

I am using the example to create PDF files, but an error appears, as shown in the image.

Attachment: pdf_10656291.zip

3 Replies

SL Sowmiya Loganathan Syncfusion Team January 30, 2020 11:37 AM UTC

Hi Marcelo,  

Thank you for contacting Syncfusion support.  

We have analyzed the reported issue and suspect that you are using the code snippet provided for ASP.NET Core platform. Could you please try the steps mentioned in the below documentation link to create the PDF file in Blazor and let us know the result.  

Kindly let us know if you need any further assistance on this.  

Sowmiya Loganathan 

MO Marcelo Oliveira Santos January 31, 2020 03:45 AM UTC

Hi Sowmiya Loganathan,

Grateful for the prompt reply.

I can not solve ExportToFileService in
@inject ExportToFileService exportService

and PDFExportService in
using (MemoryStream excelStream = PDFExportService.CreatePdf(forecasts)).


PV Prakash Viswanathan Syncfusion Team February 3, 2020 09:01 AM UTC

Hi Marcelo, 

We regret the inconvenience caused. We will correct the code examples provided in the UG documentation. Kindly refer below KB link for create PDF in Blazor.  

We have created a simple sample in Blazor to create PDF, please find the sample from below link. 

Please let us know if you need any further assistance on this.  

Prakash V 

Live Chat Icon For mobile
Up arrow icon