Hi to all,
i have this problem: in a Writer document, i create a table, then i rotate the cells of the first row (with the OOo API and Java). If i save the document in Word 97/XP/2000 and i open it, the text in the cells is not rotate... The same problem appear also if i don't use the API & Java...
Someone has the same problem??
Another thing is that if i change the properties of a cell, all is ok, but if i change the rotation, all the cells under the first (so, all the column) change is text rotation...
why???
This append also OOo 1.1.4 and OOo 1.9.79
This is the code that i use to change the properties:


XText xCellText=(XText) UnoRuntime.queryInterface(XText.class,xTable.getCellByName(xCellName));
XTextCursor xtc=xCellText.createTextCursor();
XPropertySet xCursorProps=(XPropertySet) UnoRuntime.queryInterface(XPropertySet.class,xtc);
xCursorProps.setPropertyValue("CharFontName","Arial");
xCursorProps.setPropertyValue("CharHeight",new Float(8.0));
xCursorProps.setPropertyValue("CharWeight",new Float(com.sun.star.awt.FontWeight.BOLD));
xCursorProps.setPropertyValue("CharRotation",new Short(angolo90));
xcell=xTable.getCellByName(xCellName); xPropsCell=(XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,xcell);


xPropsCell.setPropertyValue("VertOrient",new Short(com.sun.star.text.VertOrientation.CENTER));
xPropsCell.setPropertyValue("BorderDistance",new Integer(75));


Thanks to all...
Cristian


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Rispondere a