Hi!
I have a problem using this code:
#define S_CURRENCY 106 // DOESN'T WORK =(
#define S_PERCENT_SHORT 10 // 123%
#define S_PERCENT 11 //123.00%
#define S_DEFAULT 0
Reference< XSpreadsheet > rSpSheet (rSheet, UNO_QUERY);
Reference< XCell > rCell = rSpSheet->getCellByPosition(0, 0);
Reference< XPropertySet > xPropSet(rCell, UNO_QUERY);
xPropSet->setPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("NumberForma
t")), makeAny(S_CURRENCY));
All other properties(S_PERCENT_SHORT,S_PERCENT,S_DEFAULT) works greatly!
Only currency doesn't work =( What I'm doing wrong?
Thanks!
|