Re: Bug inserting text in Word file

2008-12-02 Thread Ulf Dittmer
What do you mean by document is altered? Inserting text is altering the document, isn't it? Also, you aren't really ignoring the exception, right? Ulf --- Calimero [EMAIL PROTECTED] wrote: Hi, i try to insert text in Word file like that. Document is altered when it contains tables /

Re: Bug inserting text in Word file

2008-12-02 Thread Calimero
Well, it can delete cells of table, doesn't open in MSOffice. I noted that inserting text number of bytes have changed. Any idea ? Ulf Dittmer-2 wrote: What do you mean by document is altered? Inserting text is altering the document, isn't it? Also, you aren't really ignoring the

Re: Bug inserting text in Word file

2008-12-02 Thread Calimero
No i don't have any exception. Word version is 2003 but i converted file to 97-2003 rtf (*.doc) format and occurs same bug !!! Calimero wrote: Well, it can delete cells of table, doesn't open in MSOffice. I noted that inserting text number of bytes have changed. Any idea ? Ulf

Re: Bug inserting text in Word file

2008-12-02 Thread Anthony Andrews
I am assuming that you have created a file using Word then opened it and re-saved it using POI and are wondering why the file sizes are different. If that is the case then you should not be surprised because it is quite lilely that the structure of the files will be slightly different. The two

HSSFCell API changes - I do not see setEncoding() in 3.2

2008-12-02 Thread Chinnawar, Abhay Balajirao
Was using 3.0 and trying to migrate to latest release i.e. 3.2 3.0 has setEncoding() method in HSSFCell, but I don't see this in 3.2 release. FAQ also mentioned about this method. Can some one please help me about this? Thanks, Abhay Desk-

Re: HSSFCell API changes - I do not see setEncoding() in 3.2

2008-12-02 Thread Anthony Andrews
Recently, a similar question cropped up caused by a problem with Jasper Reports. I am certain he will not mind me doing so and have included a quite from a reply Yegor gave; setEncoding was marked as deprecated in Jan 2006 and was removed from HSSFCell in Aug 2008. POI HSSF automatically

Re: Bug inserting text in Word file

2008-12-02 Thread Calimero
Well, the thing is that users upload word files and application needs to add some information at beginning of the document). Does it means that i don't have any alternative ? In the way i put a form in word file to fill in it. So an it be done ? and how ? Thx so much ! Anthony Andrews wrote:

HELP PLEASE : Bug inserting text in Word file

2008-12-02 Thread Calimero
Hi, i try to insert text in Word file like that. Document is altered when it contains tables / images or graphics : try { HWPFDocument doc = new HWPFDocument(is); Range range = doc.getRange(); range.insertBefore(Hello world); doc.write(outputStream); }

RE: Large Reports

2008-12-02 Thread Dobson, Paul L CTR USAF AFMC 416 SCMS/OBN
-Original Message- From: Nick Burch [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2008 9:26 AM To: POI Users List Subject: Re: Large Reports On Tue, 2 Dec 2008, Borys, John wrote: I have been tasked with generating Enterprise Reports and writing them to Excel Spreadsheets.

RE: Large Reports

2008-12-02 Thread Borys, John
I am using .xlsx and XSSF with POI 3.5. What should I increase the heap size to? I have tried using 1024MB for my heap max but I'm not sure how much higher I can go. And will it make a difference? I am running out of memory after 30,000 rows and I need to process over 500,000. Is there any

Re: Using POI via JNI

2008-12-02 Thread Josh Micich
Hello Rob, Rob Y wrote: ... At very least, it'd want to start up a JVM with a different classpath ... If it's just the distinct classpath you are worried about, you are not forced to use separate JVMs. You can use plain JNI to: define classes, create custom class-loaders, attach threads, etc.

HSSFRichTextString formatting runs not understood

2008-12-02 Thread Karim Ratib
Hello, I can't figure out the correct logic of iterating on formatting runs in 3.2-FINAL. Here's my current, inconsistent understanding: * There are numFormattingRuns() + 1 formatting runs in the string starting at index 0 * However, calling getIndexOfFormattingRun() or getFontOfFormattingRun()