PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Jun 17, 2019 3:38 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Tue Apr 23, 2019 12:28 pm 
Offline

Joined: Tue Apr 23, 2019 12:14 pm
Posts: 5
Hello,

what could have gone wrong if I get a System.MissingMethodException: Method not found: PdfSharp.Drawing.XColor PdfSharp.Drawing.XColor.op_Implicit(System.Drawing.Color)?

I am "implicitly" using PdfSharp from SharpDevelop Reports (PdfSharp and PdfSharp-WPF nuget packages, Version 1.50.5147; Irony and Irony.interpreter nguet packages, Version 1.1.0; ICSharpCode.Reporting.dll, file version 5.0.0.4755; Visual Studio Community 2019, Version 16.0.1). Any possible version mismatch here?


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 23, 2019 12:51 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2944
Location: Cologne, Germany
Hi!
hfriedr wrote:
PdfSharp and PdfSharp-WPF nuget packages, Version 1.50.5147
Why two PDFsharp packages?
Have you tried Visual Studio 2017?

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 23, 2019 1:09 pm 
Offline

Joined: Tue Apr 23, 2019 12:14 pm
Posts: 5
Hello Thomas,

Thanks for your reply. The two PDFSharp packages were there basically because I'm not sure exactly what I need, but it looks like SharpDevelop Reports seems to expect the PDFSharp package in particular.

Will try Visual Studio 2017.

Best regards,
Holger Friedrich


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 23, 2019 1:32 pm 
Offline

Joined: Tue Apr 23, 2019 12:14 pm
Posts: 5
Using Visual Studio 2017 instead of Visual Studio 2019 does not change the error message.


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 23, 2019 3:33 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2944
Location: Cologne, Germany
hfriedr wrote:
Using Visual Studio 2017 instead of Visual Studio 2019 does not change the error message.
Is there more in the error message than you are showing here?

Maybe you have to use the PdfSharp-GDI NuGet package instead of the two you are using.
Maybe you have to go back to PDFsharp 1.32.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 24, 2019 6:51 am 
Offline

Joined: Tue Apr 23, 2019 12:14 pm
Posts: 5
Thanks for your reply.

Thomas Hoevel wrote:
Maybe you have to use the PdfSharp-GDI NuGet package instead of the two you are using.


This would seem plausible as the source code does have an implicit conversion operator from Color to XColor, but it is inside an #ifdef GDI.

However, SharpDevelop Reporting seems to want a PDFSharp package and apparently ignores PDFSharp-gdi. Maybe I have to build my own PDFSharp DLL from source?


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 24, 2019 7:22 am 
Offline

Joined: Tue Apr 23, 2019 12:14 pm
Posts: 5
Thomas Hoevel wrote:
Maybe you have to go back to PDFsharp 1.32.


Yes, it seems to work with the PdfSharp 1.32 nuget package.

Thanks for your help.


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 24, 2019 8:59 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2944
Location: Cologne, Germany
There was a breaking change with respect to naming conventions and "PDFsharp-GDI" is the successor of the old "PDFsharp" NuGet package.
Mystery solved.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group