Free Support Forum - aspose.com

Problem to edit header footer of a file with 15 embeded objects

Good day,

I managed to append the header and footer for a file with 15 embedded power point objects.
The file is a blank page with nothing but 15 embedded objects.

After i append the header and footer, everything is allright. However, when i tried to reopen the document to amend the information in the header and footer, i got this message.

Object reference not set to an instance of an object

The exception is thrown when this line of code is triggered.
Aspose.Word.Document docTemplate = new Aspose.Word.Document(pDocPath)
The value of pDocPath is a valid document path

Do advise me if there is solution or work around solution for this.
The document which is causing this error is about 10mb
Is it possible to send it to you?

Regards,
Eric

Hi Eric,

Yes, please try to attach it.

Tried to append the 10mb attachment, but unable to.

Any other means to send it to u?

Can you winzip it then attach it again?

Currently it can accept up to 4M but I will request our webmaster to attach up to 10M.

hi erictan,

Now, you can upload 10240 KB attachment.

Good day,

I found another document which has the same problem. I am able to insert the header and footer for this document successfully. However, when i try to reopen the file, it throws the exception “Object reference not set to an instance of an object”.

This is thrown when the following code is executed.
"Aspose.Word.Document docTemplate = new Aspose.Word.Document(pDocPath)"

pDocPath is a valid directory path of where the file is located.


Please let me know if there is any work around or solution.
I am trying to solve but no progress. Very urgent, please help.

The attached document is already inserted with header footer successfully. This doc will throw the above error, when the code mentioned aboved is executed.

Hi Eric,

Thanks for the attachment, we’re looking into the issue.

Fixed this in Aspose.Word 2.4, it will be released for downloads in the next 1-2 days.