Hi João -
Just to let you know - none of the developers currently working on POI
have a real focus on HWPF. Years ago Microsoft hired aware that
contributer and put him under NDA, and that part of the API has
suffered since.
Please think that the lack of attention to your issue is an indication
of our lack of time and not our lack of interest in having a bug-free
POI.
I promise that someone will look into your issue before 3.7, but I
can't commit to when that will be, and I can't promise a fix.
One approach you could use to help solve this problem yourself is to
start by comparing the output produced by 3.1, 3.2, 3.5 and 3.6 - what
is the same and what is different. I am suggesting that you look into
3.1 because you may be encountering a bug that was fixed between 3.1
and 3.2 that did not make it into 3.5 / 3.6. That could be enough to
help a developer find the bug quickly. Knowing more helps developers
decide if the fix is going to take a predictable amount of time -
right now your problem looks potentially large and so ... no one picks
it up from bugzilla.
If you want to fix the issue yourself we would be glad to help you
with ideas and pointers into the source. Come over to the poi-dev list
and ask questions there. You could look at svn yourself and check
through changes that have occurred in the HWPF package.
Patches are always welcome. Well-done contributions with unit tests
are especially so.
Regards,
Dave
On Jan 25, 2010, at 9:15 AM, JSimas wrote:
Hello everyone.
I already posted this problem regarding the 3.5 version of poi:
http://old.nabble.com/Problems-reading-and-writing-doc-files-in-POI-3.5-td26025879.html#a26025879
Because no one answered me, i went to the bug tracker:
https://issues.apache.org/bugzilla/show_bug.cgi?id=48065
Once again no answer.
I've just downloaded version 3.6 of poi, tried again, and still
having same
error.
Here is the code i'm using
public static void main(String[] args) {
try {
File file = new File("c:\\input.doc");
HWPFDocument document = new HWPFDocument(new
FileInputStream(file));
File outputFile = new File("c:\\output.doc");
FileOutputStream outStream = new
FileOutputStream(outputFile);
try {
document.write(outStream);
} finally {
outStream.close();
}
} catch (Exception e) {
e.printStackTrace();
}
}
See the input.doc and output.doc to see what is my problem.
http://old.nabble.com/file/p27307995/input.doc input.doc
http://old.nabble.com/file/p27307995/output.doc output.doc
Please help me! This is a very basic error. Maybe i'm doing
something very
wrong... but if not... this is a major problem in the new versions
of POI
(in version 3.2 this code works fine).
Thanks in advance.
Best regards.
João Simas
--
View this message in context:
http://old.nabble.com/Problems-reading-and-writing-doc-files-in-POI-3.6-tp27307995p27307995.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]