PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Apr 18, 2024 8:14 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Wed Aug 03, 2016 5:55 pm 
Offline

Joined: Tue Aug 02, 2016 3:51 pm
Posts: 6
I started having problems with my line graphs displaying correctly on a Windows form (using PDFSharp.Charting) but not in a PDF file. The PDF would display the graph, but without and text. It was working before I modified the code that allows adjusting of the parameters of the graph. I decided to do is upgrade to your latest version, 1.50 beta 3. Now it will not compile. Some of the errors I get are:

The type or namespace 'Forms' does not exist in the namespace 'PDFSharp' (are you missing an assembly reference?)

The name 'Zoom' does not exist in the current context

Could you please help me out with getting it to compile?


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 03, 2016 6:52 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 914
Location: CCAA
Hi!
georged wrote:
Could you please help me out with getting it to compile?
Use the correct version.

Maybe you need this one:
https://www.nuget.org/packages/PDFsharp ... 000-beta3b

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 04, 2016 7:02 pm 
Offline

Joined: Tue Aug 02, 2016 3:51 pm
Posts: 6
Hi Thomas,

I went to the web page you supplied, but I can't find a way to download the file. I never used NuGet before. Can you help me?

George


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 04, 2016 7:04 pm 
Offline

Joined: Tue Aug 02, 2016 3:51 pm
Posts: 6
I forgot to ask. How do I find out what version of PDFSharp that I am currently using?


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 05, 2016 8:51 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 914
Location: CCAA
georged wrote:
How do I find out what version of PDFSharp that I am currently using?
Look at the filename: PDFsharp.dll or PDFsharp-wpf.dll or so.
Open the properties dialogue and you will find a file version.

The NuGet Package Manager is an extension for Visual Studio. Do you use Visual Studio?

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 05, 2016 5:48 pm 
Offline

Joined: Tue Aug 02, 2016 3:51 pm
Posts: 6
Yes, I am using Visual Studio 2015. After I do this if I have problems can I back out to my last version?


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 05, 2016 5:50 pm 
Offline

Joined: Tue Aug 02, 2016 3:51 pm
Posts: 6
The version I am using is 1.32.2608.0. Is there anything not supported in the new version that is supported in mine?


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 05, 2016 7:42 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 914
Location: CCAA
The new PdfSharp-GDU.dll is the successor of the old PdfSharp.dll.
You didn't show your filenames ...

Maybe you just got the wrong NuGet package.
For WinForms you need the GDI package.

Maybe a reference to some .NET assemblies is missing.

In cases like that I open the Output window in Visual Studio and search for the first occurrence of ": error".
Thus I avoid investigating follow-up errors.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 05, 2016 7:57 pm 
Offline

Joined: Tue Aug 02, 2016 3:51 pm
Posts: 6
PDFSharp.dll 1.32.2608.0
PDFSharp.Charting.dll 1.32.2608.0
MigraDoc.Rendering.dll 1.32.3885.0
MigraDoc.DocumentObjectModel.dll 1.32.3885.0

I've been using this version since last year with no errors during my compile.

When I got this package it wasn't from NuGet. I got it from http://pdfsharp.codeplex.com/releases .
I'm afraid that using NuGet it will update my PDFSharp and then it will not work and I will not be able to go back to my original version.
The last time I updated, all I had to do was delete the PDF and MIgraDoc projects from my Solution and then add the new projects in. Fix a few references and compile.


Top
 Profile  
Reply with quote  
PostPosted: Sat Aug 06, 2016 7:05 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 914
Location: CCAA
For maximum compatibility you have to add references to the projects that have "-GDI" in the name of the *.csproj files.

There was a change in the naming convention and the new version without suffix is just a subset of the old version without suffix.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 50 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