Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed Sep 03, 2014 7:50 am

Hello,
I load a document (word 97/2003) (attached to this post) and it is ok. but when i try to save it i have an error object reference not set to an instance of an object.

This is the code :
document.LoadFromFile(filename, FileFormat.Doc);
doc.SaveToFile(destfilename, FileFormat.Doc);

This is the Stack trace :
at spr᬴.ᜀ(Body A_0, Int32 A_1)
at spr᬴.ᜁ(DocPicture A_0, Int32 A_1, Int32 A_2)
at spr᬴.ᜀ(IPicture A_0)
at spr᬴.ᜀ(ParagraphBase A_0, IParagraph A_1)
at spr᬴.ᜁ(IParagraph A_0)
at spr᬴.ᜀ(BodyRegionCollection A_0, Boolean A_1)
at spr᬴.ᜀ(sprὕ A_0, BodyRegionCollection A_1, HeaderType A_2)
at spr᬴.ᜑ()
at spr᬴.ᜓ()
at spr᬴.ᜀ(sprẆ A_0, Document A_1)
at Spire.Doc.Document.ᜆ(String A_0)
at Spire.Doc.Document.SaveToFile(String fileName, FileFormat fileFormat)
at ConfManager.Utility.Word.WordHelper.SaveDocument(String filename, Document doc, FileFormat filefmt) in C:\Dev\Aspa\AsConfManager.Utility.Word\WordHelper.cs:line 330
at ConfManager.Utility.Word.WordHelper.CreateDoc(Byte[] content, String destfilename, InputFileFormat inpfilefmt) in C:\Dev\Aspa\AsConfManager.Utility.Word\WordHelper.cs:line 310

Thank you.

tarikzaid
 
Posts: 29
Joined: Wed Aug 06, 2014 7:16 am

Wed Sep 03, 2014 8:05 am

Hello,

Thanks for your feedback.
We have noticed the issue you metioned, which has been transferred to our Dev team, once there are any update, we will let you know immediately.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Fri Sep 05, 2014 8:54 am

Dear tarikzaid,

For the issue you posted, please visit following link to get a new version of Spire.Doc to fix it:
http://www.e-iceblue.com/downloads/hot_ ... 5.2.34.zip

Best Regards,
Burning
E-iceblue support team
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Fri Sep 05, 2014 12:54 pm

Thanks, the issue is fixed.

tarikzaid
 
Posts: 29
Joined: Wed Aug 06, 2014 7:16 am

Mon Sep 08, 2014 7:34 am

Hello,

Thanks for your response. Glad to hear that.
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.Doc