Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro generating PDF #12

Open
thiagoea opened this issue Mar 19, 2020 · 2 comments
Open

Erro generating PDF #12

thiagoea opened this issue Mar 19, 2020 · 2 comments

Comments

@thiagoea
Copy link

Hello,

I trying generate pdf and returnig this erro, but when trying in another type the other type its worked:

An error occurred during local report processing.;No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.'

regards,

@zatuliveter
Copy link

You can fix it by adding this line in startup of the app.

System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
Install System.Text.Encoding.CodePages nuget if needed.

@abiezerm
Copy link

with the comment of @zatuliveter, I think we could close this issue,
what do you think @thiagoea?

Tested with .Net 5 and works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants