PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
1.31; Paragraph.AddDateField & DocumentRenderer.RenderObject https://forum.pdfsharp.net/viewtopic.php?f=3&t=2342 |
Page 1 of 1 |
Author: | kumakaori [ Mon Feb 25, 2013 11:14 pm ] |
Post subject: | 1.31; Paragraph.AddDateField & DocumentRenderer.RenderObject |
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(); And I get this error in VS2008:DocumentRenderer docRenderer = new DocumentRenderer(doc); docRenderer.PrepareDocument(); docRenderer.RenderObject(gfx, XUnit.FromInch(1), XUnit.FromInch(3.25), "6.5in", paragraph); 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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |