Re: Obtaining the ClassID from a document programmatically

2005-04-26 Thread Daniel Noll
[EMAIL PROTECTED] wrote: don't assume its a bug. Check that your doc doesn't actually have a 000 clsid! I just committed changes to org.apache.poi.util.HexDump to head. It now has a main method. If you run it on the file, you should be able to see it. Also check org.apache.poi.poifs.dev.PO

Re: Obtaining the ClassID from a document programmatically

2005-04-26 Thread andy
don't assume its a bug. Check that your doc doesn't actually have a 000 clsid! I just committed changes to org.apache.poi.util.HexDump to head. It now has a main method. If you run it on the file, you should be able to see it. Also check org.apache.poi.poifs.dev.POIFSViewer. I haven't loo

Re: Obtaining the ClassID from a document programmatically

2005-04-26 Thread Daniel Noll
Michael Zalewski wrote: I'm pretty sure DirectoryNode.getStorageClsid() works on the 'Root Entry'. That should work pretty reliably -- its one of the ways Internet Explorer uses to determine that a page is actually an Excel spreadsheet (or Power Point presentation). Power Point and Excel do not use

RE: Obtaining the ClassID from a document programmatically

2005-04-26 Thread Michael Zalewski
I'm pretty sure DirectoryNode.getStorageClsid() works on the 'Root Entry'. That should work pretty reliably -- its one of the ways Internet Explorer uses to determine that a page is actually an Excel spreadsheet (or Power Point presentation). Power Point and Excel do not use the CompObj stream, un

Obtaining the ClassID from a document programmatically

2005-04-26 Thread Daniel Noll
For whatever reason, I need to know the class ID of a document up-front, before performing some non-POI-related operations on the file. We currently do this via a JNI utility method, but for the sake of portability, is there a correct way to obtain the Class ID of a document using POI? I figur

Re: Automatically expanding each column to accomodate largest/widest cell using POI-HSSF

2005-04-26 Thread Sanjiv Jivan
Not sure if HHSF has an API for this but you can add the following code in the Open subroutine of your workbook. Private Sub Workbook_Open() Dim i As Integer Application.ScreenUpdating = False For i = 1 To Sheet1.UsedRange.Columns.Count Sheet1.UsedRange.Columns(i).EntireColumn.A

Automatically expanding each column to accomodate largest/widest cell using POI-HSSF

2005-04-26 Thread John Sims
Hi, I'm using POI-HSSF in a JSP application to stream an Excel spreadsheet to a web browser. This is working great! But, I cannot find a way to easily expland each column's width to accomodate the widest cell in the column (ie. Fit the contents). That is, i'd like to have the Excel spreadsh

RE: Write Word Vertically

2005-04-26 Thread Mili Aggarwal, Noida
Use \n with word wrap on Warm Regards, M -Original Message- From: yama [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 3:30 PM To: poi-user@jakarta.apache.org Subject: Write Word Vertically Hi in a cell, I'd like to write word vertically. Anybody know how to do it? regard

Write Word Vertically

2005-04-26 Thread yama
Hi (B (Bin a cell, I'd like to write word vertically. (BAnybody know how to do it? (B (Bregards (Byama (B (B__ (BDo You Yahoo!? (BUpgrade Your Life (Bhttp://bb.yahoo.co.jp/ (B (B (B- (