Quantcast
Channel: npoi Discussions Rss Feed
Viewing all articles
Browse latest Browse all 637

New Post: Error while reading .doc file

$
0
0
Hi!

I got this file when i'm trying to read .doc (97-2003) file.

An unhandled exception of type 'ICSharpCode.SharpZipLib.Zip.ZipException' occurred in ICSharpCode.SharpZipLib.dll

Additional information: Wrong Local header signature: 0xE011CFD0

This is my code:

FileStream fs = new FileStream("test.doc", FileMode.Open, FileAccess.Read);
XWPFDocument document = new XWPFDocument(fs);
XWPFWordExtractor exctr = new XWPFWordExtractor(document);
MessageBox.Show(exctr.Text);

And this is my doc file:
http://speedy.sh/a5e7G/word.doc

Viewing all articles
Browse latest Browse all 637

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>