"Object reference not set to an instance of an object"

"Object reference not set to an instance of an object"

Forum member · Jan 29, 2007
i've seen this in the forums before, but related to PDF fields. i've got none of those, but still have the error. any thoughts? many thanks,

Re: "Object reference not set to an instance of an object"

Support · Jan 29, 2007
You correct, this type of error could arise when trying to reference incorrect form field names but this error could also be related to other issues. Are you referencing any external resources (images, fonts, etc.) while generating this PDF? If so, an invalid/corrupt resource may be another reason for this error. If you are, please send an email directly to [^a|mailto:support@cete.com|support@cete.com^] referencing this forum post and attach any images or external fonts that you are using. We can test those to see if they are possibly causing the issue. Also please show the exact line (or lines) of code you are using to add these to your PDF. Specify the exact build number of the dlls that you are using as well. Thanks, ceTe Software Support Team

Re: "Object reference not set to an instance of an object"

Forum member · Jan 29, 2007
it also turns out that trying to assign a non-existant querystring parameter to the document.title, then DrawToWeb, creates the error we're discussing. not the most illuminating error message. thanks,

Re: "Object reference not set to an instance of an object"

Support · Jan 30, 2007
Hello, You are getting this error most likey because you are assigning a null value to Document.Title and it is not possible to set a null value. Please check the value before assigning, if it a null value then assign an empty string and this will solve your problem. Thanks, ceTe Software Support Team.