PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
Problem with No data is available for encoding 1252 http://forum.pdfsharp.com/viewtopic.php?f=2&t=4396 |
Page 1 of 1 |
Author: | Jupklass [ Fri Sep 30, 2022 11:19 am ] |
Post subject: | Problem with No data is available for encoding 1252 |
Hi I´m migratting an app from .net 4.8 using winforms to .net 6 using winui I have a pice of code for merge pdf files that works greath on .net 4.8 but on .net 6 fails Fail message is Mensaje = No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. it trigger when i call outputdocument.close() Solution: Seems that add this line before add any page makes it work Code: System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |