PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 6:43 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Feb 25, 2013 11:14 pm 
Offline

Joined: Mon Feb 25, 2013 10:56 pm
Posts: 1
Hi, I was working in the samples y'all provide with your libraries and while working within the MigraDocAndPDFSharp example, I tried to addDateField to my paragraph, then later using the documentRenderer to render my paragraph as an object.

E.G.:
Code:
paragraph.AddDateField();
DocumentRenderer docRenderer = new DocumentRenderer(doc);
docRenderer.PrepareDocument();

docRenderer.RenderObject(gfx, XUnit.FromInch(1), XUnit.FromInch(3.25), "6.5in", paragraph);
And I get this error in VS2008:
An unhandled exception of type 'System.NullReferenceException' occurred in MigraDoc.Rendering.dll

Additional information: Object reference not set to an instance of an object.

-----
RenderPage();, however, works. If this was fixed in 1.32 I apologize for wasting everyone's time, I do not have access to VS2010 and thus am still working with 1.31.

If this gets a fix, awesome. If not, I'll live with the workaround. Felt the need to share after an afternoon of frustration and finally figuring out it was the darned AddDateField(); that was crashing my code.

~Kuma.


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

All times are UTC


Who is online

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