Have a look for windows compatible fonts in ubuntu they are available through the package manager so I am sure it must be similar in centos.
-----Original Message----- From: Nick Burch <[email protected]> Date: Sat, 29 May 2010 10:32:58 To: POI Users List<[email protected]> Subject: Re: autoSizeColumn issue 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]
