PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

SystemNotSupportedException from RenderDocumen()
http://forum.pdfsharp.com/viewtopic.php?f=2&t=4314
Page 1 of 1

Author:  Siccc [ Thu Jan 13, 2022 11:11 am ]
Post subject:  SystemNotSupportedException from RenderDocumen()

Hi all,
I'm quite new to pdfSharp and MigraDoc and C# at all. Actually I'm a PLC developer, what leads to the fact, that I'll ask kinda stranger questions. It's allowed to laugh at me. :-D

Currently I work with the beginner code I found on the MigraDoc web page. Looks good so far, but when I start the program I will get an SystemNotSupportedException and RenderDocument() is marked.
Does someone have a solution for this behavior?

Best regards
Siccc

Author:  TH-Soft [ Thu Jan 13, 2022 11:18 am ]
Post subject:  Re: SystemNotSupportedException from RenderDocumen()

Siccc wrote:
Does someone have a solution for this behavior?
Never seen that before. Please provide more information.
http://forum.pdfsharp.net/viewtopic.php?f=2&t=832

Author:  Siccc [ Thu Jan 13, 2022 11:26 am ]
Post subject:  Re: SystemNotSupportedException from RenderDocumen()

Maybe my screenshot will make things clearer.

Attachments:
Migradoc 2022-01-13 122500.png
Migradoc 2022-01-13 122500.png [ 139.86 KiB | Viewed 4312 times ]

Author:  TH-Soft [ Thu Jan 13, 2022 11:44 am ]
Post subject:  Re: SystemNotSupportedException from RenderDocumen()

Are you using a PDFsharp version published by empira? Or a third-party port?

Author:  Siccc [ Thu Jan 13, 2022 11:45 am ]
Post subject:  Re: SystemNotSupportedException from RenderDocumen()

The Empira version 1.50.5.147

Author:  TH-Soft [ Thu Jan 13, 2022 12:03 pm ]
Post subject:  Re: SystemNotSupportedException from RenderDocumen()

There are three versions:
PDFsharp-MigraDoc-GDI by: PDFsharp-Team
2,070,981 total downloads last updated 04/02/2019 Latest version: 1.50.5147 MigraDoc PdfSharp Pdf Document Generation
MigraDoc Foundation - the Open Source .NET library that easily creates documents based on an object model with paragraphs, tables, styles, etc. and renders them into PDF or RTF. This is the MigraDoc GDI package. See Project Information for details.

PDFsharp-MigraDoc by: PDFsharp-Team
714,643 total downloads last updated 04/02/2019 Latest version: 1.50.5147 MigraDoc PdfSharp Pdf Document Generation
MigraDoc Foundation - the Open Source .NET library that easily creates documents based on an object model with paragraphs, tables, styles, etc. and renders them into PDF or RTF. This is the MigraDoc PDF Core package. See Project Information for details.

PDFsharp-MigraDoc-WPF by: PDFsharp-Team
271,385 total downloads last updated 04/02/2019 Latest version: 1.50.5147 MigraDoc PdfSharp Pdf Document Generation
MigraDoc Foundation - the Open Source .NET library that easily creates documents based on an object model with paragraphs, tables, styles, etc. and renders them into PDF or RTF. This is the MigraDoc WPF package. See Project Information for details.

Have you tried both "PDFsharp-MigraDoc-GDI" and "PDFsharp-MigraDoc-WPF"?

Author:  Siccc [ Thu Jan 13, 2022 12:05 pm ]
Post subject:  Re: SystemNotSupportedException from RenderDocumen()

I use the second one.

Author:  TH-Soft [ Thu Jan 13, 2022 12:08 pm ]
Post subject:  Re: SystemNotSupportedException from RenderDocumen()

Siccc wrote:
I use the second one.
The versions ending in "-GDI" or "-WPF" are fully operational. Try one of those if possible. WPF is newer and probably the better choice.

Author:  Siccc [ Thu Jan 13, 2022 12:09 pm ]
Post subject:  Re: SystemNotSupportedException from RenderDocumen()

Ok, thank you very much. I'll try that.

Author:  Siccc [ Tue Jan 18, 2022 2:50 pm ]
Post subject:  Re: SystemNotSupportedException from RenderDocumen()

Just to make things clear...
The mentoined error was caused by the lack of another encoding lib and hab nothing to do with MigraDoc/pdfSharp.

MigraDoc's working great so far.
Thank you for supporting.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/