Re: query from newbie:how to read openoffice documents

2007-04-09 Thread Tom Schindl
POI is only for MS-Document formats. To read ODF-Files you should use the OO-API which can be accessed from many different languages. An example how to convert OpenOfficeDocuments to other formats can be found here: http://codesnippets.services.openoffice.org/Office/Office.ConvertDocuments.sni

Re: How to use POI for reading Excel 2.1 format?

2006-07-26 Thread Tom Schindl
ice for this purpose. Depending on the OpenOffice > installation will mean that I will have to port OpenOffice along with my own > application. Is there any other workaround to solve this problem? > > Thanks, > Suyog > > - Original Message - > From: "Tom Schindl&q

Re: How to use POI for reading Excel 2.1 format?

2006-07-26 Thread Tom Schindl
Suyog Mahajan schrieb: > Hi Karl, > > Thanks for your prompt response. I have already seen that thread about using > OOo for format conversion. But I am unable to figure out how to use it. The > solution I am looking for, is like a JAR file, you simply port it with your > application, and this JAR

Re: AW: can we convert excel 95 to excel 97

2006-07-24 Thread Tom Schindl
KHZ (SAW) schrieb: > Hi Ravi. > > There are code snippets which you find in the internet and in the > documentation (some directory of the installation; as it's some time away > don't ask me about the exact name). > http://codesnippets.services.openoffice.org/Office/Office.ConvertDocuments.snip

Re: Exception while reading Excel sheet

2006-03-30 Thread Tom Schindl
Well data is sent to you following multipart/form-data you need to use something like commons-fileupload (http://jakarta.apache.org/commons/fileupload/) to read the file sent to you from the browser. Tom Natu, Ashlesha [IT] wrote: > Hi, > > I am new to POI. I am trying to upload an excel sheet

Re: AW: Excel - Backgroundcolor

2006-03-28 Thread Tom Schindl
Beyer, Daniel (SL1 D) wrote: > thx, but i wrote the following and it doesn´t seem to work: > > HSSFCellStyle captionStyle = workBook.createCellStyle(); > captionStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER); The next line is not needed > captionStyle.setFillBackgroundColor

Re: Excel - Backgroundcolor

2006-03-28 Thread Tom Schindl
Strange enough what you need is setFillForeground and the style is HSSFCellStyle.SOLID_FOREGROUND Tom Beyer, Daniel (SL1 D) wrote: > Hello, > > i am new to POI and trying to generate an Excel-File. > My prob ist that the background-color setting doesn´t work. > > My Code ist here: >

Re: HSSF - Exception thrown when processing Outlook export

2006-03-09 Thread Tom Schindl
I think that your problem is that the XLS is saved into a too new format I think I can remember this exception when loading Spreadsheets created with a new excel and saved them to the current excel format. Try saving it as Excel an older Excel Format. Tom Nick Heudecker wrote: > I'm encountering

Re: POI to PDF

2006-03-08 Thread Tom Schindl
t is using odt extension for source file. Will it work > with XLS? > Regards, > Tahir > -Original Message- > From: Tom Schindl [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 08, 2006 8:05 PM > To: POI Users List > Subject: Re: POI to PDF > > Well you

Re: POI to PDF

2006-03-08 Thread Tom Schindl
Well you can't export to PDF from POI you need to load the file into e.g. OpenOffice using UNO and let OO do the Job for you. How this can be done is shown in the codesnippet here: http://codesnippets.services.openoffice.org/Office/Office.ConvertDocuments.snip Tom Tahir Akhtar wrote: > Hi, > >

Re: Automatic Column Width

2006-03-07 Thread Tom Schindl
There's been a thread about this a while ago. Search the archives. Tom Bickel, Sean wrote: > Is there a way to autofit a column width in excel? > > Also, Is there a way to search the mailing archive? > > Thanks > Sean Bickel > > -

Re: HWPF Milestones - Add support for Lists and Tables

2006-02-01 Thread Tom Schindl
Although not pure Java you can use OOffice's UNO-Bridge to extract almost everything from a word, excel, ppt, ... . Take a look at: http://api.openoffice.org Tom Andreas Höhmann wrote: > Hi folks, > > on http://jakarta.apache.org/poi/hwpf/projectplan.html there is a > milestone for year 2003 (a

Re: AW: AW: AW: Excel colors

2006-01-26 Thread Tom Schindl
dex. > I'll try the named colors approach. > > Claus > > -----Ursprüngliche Nachricht- > Von: Tom Schindl [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 26. Januar 2006 13:00 > An: Claus Luethje; POI Users List > Betreff: Re: AW: AW: Excel colors > &

Re: AW: AW: Excel colors

2006-01-26 Thread Tom Schindl
) relevant? > > Claus > > -Ursprüngliche Nachricht- > Von: Tom Schindl [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 26. Januar 2006 12:37 > An: POI Users List; Claus Luethje > Betreff: Re: AW: Excel colors > > Ok and here's the 'fault', This

Re: AW: Excel colors

2006-01-26 Thread Tom Schindl
LS style according to a table definition. The > method 'tfd.getEvenRowColor()' returns the HSSFColor - as converted by the > getColor(final Color col) method from my first mail. > > Claus > > -Ursprüngliche Nachricht- > Von: Tom Schindl [mailto:[EMAIL PROTE

Re: Excel colors

2006-01-26 Thread Tom Schindl
Could you post the code how you are setting the background color on a cell? Tom Claus Luethje wrote: > Hi, > I build an excel sheet with colored cells and texts, and it works fine > when I use the predefined colors. But when I add colors myself, I get > grey scale colors. Do I have to change some

Re: resultset from Oracle to a HSSFSheet

2006-01-26 Thread Tom Schindl
Have you tried running gc inside your loop? Tom [EMAIL PROTECTED] wrote: > Hello, > > Thx to Marot Laurent, Stefan and Karsten Voges. > 2 solutions : > - increase the heap size with –Xmx (it depends if you can or not) > - use CSV instead of Excel file for large data(more than 5000 -1

HSSFColors not same as RGB-Colors

2006-01-13 Thread Tom Schindl
Hi, I have the problem that I want to use my own colors in Excel. I read the quick guide about custom colors and when registering my own color using this method e.g. red with RGB(255,0,0) the color displayed in Excel is not a read matching 255,0,0 but a much darker red it seems that it is the red