I haven't used the column resizing feature myself but remember reading on this list that it requires you to run you JVM in headless mode if you don't have display system installed (like linux running without X Windows System). This is required for calculating column width employing the actual fonts you have used in your Sheet. I think if the system generating the POI sheet don't have the required fonts than the column resizing won't work correctly.

Regards
Tahir Akhtar

Ruchi Agrawal wrote:
Hi Christian,
This feature is new in POI 3.1 i believe. But i can not get the new way to work 
in my case. Can you send me a code example of
have you have achieved this using the old way.

Thank you very much
Ruchi



----- Original Message ----
From: Christian Gosch <[EMAIL PROTECTED]>
To: user <[email protected]>
Sent: Monday, September 15, 2008 4:34:40 AM
Subject: RE: POI Automatic column sizing

Interesting that this exists at all... However, I have older code agnostic of that feature anyway, and there I collect the sizes by-column and apply them using a factor, since the original size width value returned by single cells is too small anyway compared to what seems to be needed for applying it as column width.

With grouping characters switched on, this is too small either, but for text content it works. Reasonably I should distinguish between numeric cells with million values and grouping characters on the one hand and text values on the other. But in a table generating servlet handling very general requests for lists, that is not always easy.

Regards,


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to