PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Tue Oct 28, 2025 7:55 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Jan 29, 2014 5:35 pm 
Offline

Joined: Tue Jan 28, 2014 9:15 pm
Posts: 2
I'm a novice developer attempting to go through MigraDoc samples in VS2013. I am having no luck getting anything to execute. Issues with .NET version (which I believe I've corrected by installing those .NET versions and modifying project properties), unable to run because it's a library errors and multiple context errors that are proving difficult to resolve.

I've googled to no avail on these matters.

What is wrong with the samples? Will they simply not run in VS2013? Are there instructions to do this somewhere or would someone kindly advise?

Also, can someone tell me what the difference is between PDFsharp and MigraDoc? The explanations given are so vague there is no way to determine a decision on what tool to use (or both) to solve a given technical problem.

Thanks!

Paul


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 29, 2014 5:45 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3136
Location: Cologne, Germany
Hi!

Samples work with VS2012. I haven't tried VS2013 yet.

Re Cannot run a library
Select a sample program (e.g. Hello World) and not a library (e.g. PDFsharp) as your startup project.

Re PDFsharp vs. MigraDoc:
See also: http://www.pdfsharp.net/

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 29, 2014 6:24 pm 
Offline

Joined: Tue Jan 28, 2014 9:15 pm
Posts: 2
Hello Thomas,

I've tried running (F5/debug...) "Hello World" (from MigraDoc Samples-WPF-VS2010.sln, not sure if I'm running debug on this correctly. Actually, it would be great to have instructions for how to run these samples as it does not appear to be as simple as "open solution and hit F5") and all I get are PILES of errors like;

"Error - The type or namespace name 'PdfSharp' could not be found (are you missing a using directive or an assembly reference?) C:\.NET Libraries\PDFSharp-MigraDocFoundation-1_32\MigraDoc\code\MigraDoc.Rendering\MigraDoc.Rendering\PageInfo.cs 32 7 MigraDoc.Rendering-WPF"

in literally all of the .cs files in the solution.

I would have expected all necessary references would be in there...

Thanks

Paul


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 30, 2014 9:29 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3136
Location: Cologne, Germany
pgtaviator wrote:
I would have expected all necessary references would be in there...
All the references are there and the samples work "out of the box" with VS 2010.

I opened the solution with VS2010, set HelloWorld as startup app, pressed F5 and got a PDF file - without any other changes.
Opened the solution with VS2012, pressed F5 and got a PDF file.

You use VS2013 (which I don't have yet) and changed the .NET version with some libraries.

When I get lots of errors, I select Rebuild to compile everything, then I open the Output window and search for the first occurrence of ": error". Solve this error, then try again.

When library A does not compile, you will get heaps of errors from other libraries that reference library A (which was not build).
So check why library PDFsharp does not compile.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 296 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