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.