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.