Exception - Object reference not set

Aug 16, 2007 at 12:58 PM
I'm trying to open a Word doc and got the following error:

"Failed to open. Object reference not set to an instance of an object."

I think I know what is causing it. I programmatically added a customXML part to the document and added a reference to it, but did not add a properties document. Half of the sample code I found adds the properties document and half do not. Word appears to work fine without the properties document, so I have skipped it for now. I'm still trying to figure if I really need it and, if so, the right way to create it.

Brent

Aug 16, 2007 at 2:57 PM
Just an update, I added the properties document and it opens fine now.