On Fri, 28 May 2010, calintz wrote:
I'm currently using poi-3.6 to generate excel file. It is working well in my development environment(window xp & jdk1.6.0_20). When i try to generate excel file in my production environment(centOS 5 & OpenJDK 1.6.0-b09), i found that autoSizeColumn does not produce the output as expected.
autoSizeColumn relies on finding a close enough font to be able to figure out how wide to make the column be. I bet you have the correct fonts on your dev box, but not in production. Try installing some more fonts (ideally the ones you use in excel!) on the production box, make sure that java there can see them, then retry your code
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
