Hi,
I’m using the following code snippet to get
contents of word documents as strings:
XTextDocument xTextDocument =
(XTextDocument) UnoRuntime.queryInterface(
XTextDocument.class,
xComp);
String s =
xTextDocument.getText().getString();
This seems to work fine for documents up to around
5MB in size and just return “221; for larger documents. Anybody have
an idea of why I get this problem? Maybe you need to set available memory
somewhere, I tried –Xmx1024m as a jvm argument but still fails with no
exception.
Cheers, Thomas
**********************************************************************
The information in this e-mail and any attachment is confidential.
It is intended only for the named recipient(s). If you are not a
named recipient please notify the sender immediately and do not
disclose the contents to another person or take copies. Although
Axxia Systems has taken every reasonable precaution to ensure
that any attachment to this e-mail has been checked for viruses,
it is strongly recommended that you carry out your own virus
check before opening any attachment, as we cannot accept
liability for any damage sustained as a result of software virus
infection. Axxia Systems reserves the right and senders of
messages shall be taken to consent to the monitoring and
recording of e-mails addressed to axxia.com.
**********************************************************************
|