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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error creating PDF file in Blazor

Thread ID:

Created:

Updated:

Platform:

Replies:

151069 Jan 29,2020 07:34 PM UTC Feb 3,2020 09:01 AM UTC ASP.NET Core - EJ 2 3
loading
Tags: PDF
Marcelo Oliveira Santos
Asked On January 29, 2020 07:34 PM UTC

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

Attachment: pdf_10656291.zip

Sowmiya Loganathan [Syncfusion]
Replied On 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.  

Regards, 
Sowmiya Loganathan 


Marcelo Oliveira Santos
Replied On 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)).

Regards,
Marcelo






Prakash Viswanathan [Syncfusion]
Replied On 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.  

Regards, 
Prakash V 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon