pctCell = HSSFWorkbook_createCellStyle(book);
TempStr = new_String('0.00%');
NumFmt = HSSFDataFormat_getFormat(DataFmt: TempStr);
HSSFCellStyle_setDataFormat(pctCell: NumFmt);
HSSFCellStyle_setAlignment(pctCell: ALIGN_RIGHT);
HSSFCellStyle_setVerticalAlignment(pctCell:VERTICAL_CENTER) ;

Since your code is so similar to this, I would look at the code that's
placing the cell value. What data type is used? INT would be a problem, as
would numeric with zero decimals.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
If voting changed anything, they'd make it illegal.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.