CodePlexProject Hosting for Open Source Software
When I am trying to read file with .doc extension
that is DocX document= DocX.Load("D:\example.doc");
that is gives me error "File is corrupted".
Any help is greatly appreciated.
Word documents that are saved in the earlier .doc format are not XML compliant so will not open using the novacode.docx application. The Word .docx file format is completely different from the word .doc.
I would suggest another reader application or using the bad practice interops instead. Or of course telling your users to save as .docx instead... This isn't a bad idea since Microsoft Office 2003 is being made unsupported (no more security fixes/patches
etc) so it's life span is ending next year. Office 2007+ can all save in the XML compliant format by default.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.