You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by JSimas <js...@gmail.com> on 2009/10/23 14:52:56 UTC
Problems reading and writing doc files in POI 3.5
Hello everyone.
I'm having a very strange problem regarding reading and writing doc files
using POI 3.5. The doc is written, but some elements become unformatted
(like tables!).
In attachment i send my simple doc file, and the code i'm executing is the
following code:
File file = new File("simple.doc");
HWPFDocument document = new HWPFDocument(new FileInputStream(file));
File outputFile = new File("output-" + filename);
FileOutputStream outStream = new FileOutputStream(outputFile);
try {
document.write(outStream);
} finally {
outStream.close();
}
System.out.println("Check file output: " + outputFile.getAbsolutePath());
Now... here comes the strange part... If i use POI 3.2, the doc is well
written. Does anyone already tested POI 3.5 with doc files?
Thanks for you help.
Best regards
João Simas http://www.nabble.com/file/p26025879/simple.doc simple.doc
--
View this message in context: http://www.nabble.com/Problems-reading-and-writing-doc-files-in-POI-3.5-tp26025879p26025879.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: Problems reading and writing doc files in POI 3.5
Posted by ralukame <ra...@gmail.com>.
Just tried it with poi 3.6. It still doesn't work.
And if it'a a really complex doc, it won't work with 3.2 either.
JSimas wrote:
>
> Hello.
>
> Since there were no responses, i added this issue to the bugtracker:
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=48065
> https://issues.apache.org/bugzilla/show_bug.cgi?id=48065
>
> Best Regards
>
> João Simas
>
--
View this message in context: http://old.nabble.com/Problems-reading-and-writing-doc-files-in-POI-3.5-tp26025879p27950941.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org
Re: Problems reading and writing doc files in POI 3.5
Posted by JSimas <js...@gmail.com>.
Hello.
Since there were no responses, i added this issue to the bugtracker:
https://issues.apache.org/bugzilla/show_bug.cgi?id=48065
https://issues.apache.org/bugzilla/show_bug.cgi?id=48065
Best Regards
João Simas
--
View this message in context: http://www.nabble.com/Problems-reading-and-writing-doc-files-in-POI-3.5-tp26025879p26079865.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org