This is an extract of my code - I do not know, why the last code line
always fails .... any ideas ?
unoidl.com.sun.star.beans.XPropertySet propSet = null;
// We get a single cell .... which works without problems ...
unoidl.com.sun.star.table.XCell cell =
((unoidl.com.sun.star.table.XCellRange)aXTextTable).getCellByPosition(1,1);
// THis property value setting (based on tables) works also ....
((unoidl.com.sun.star.beans.XPropertySet)aXTextTable).setPropertyValue(
"BackColor",
new uno.Any(0x6666AA));
// Now we try to work based on cells ...
propSet = (unoidl.com.sun.star.beans.XPropertySet) cell;
// This always breaks and raises UnknownPropertyException
// ... but single cells should have this property ...
propSet.setPropertyValue(
"HoriJustify",
new uno.Any((ushort)unoidl.com.sun.star.table.CellHoriJustify.LEFT));
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]