openoffice-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "k.misha" <mi...@4k.com.ua>
Subject UNO API
Date Thu, 18 Apr 2013 20:00:00 GMT
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!

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message