I try to set the properties also after that before, but nothing...
I have another problems: i want to change the column width values, and i suppose that he only way to change them is use TextColumnSeparator.
But,the value that you must insert, what is? is a formula of what?? is the distance from left margin or is the real width of the column??
Thanks to all



Stephan Wunderlich ha scritto:

Hi Cristian,

This is my Java code:
Object table = xWriterFactory.createInstance("com.sun.star.text.TextTable");
XTextContent xTextContentTable = (XTextContent)UnoRuntime.queryInterface(XTextContent.class, table);
XPropertySet xTableProps=(XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,table);


xTableProps.setPropertyValue("HoriOrient",new Integer(com.sun.star.text.HoriOrientation.LEFT_AND_WIDTH));
xTableProps.setPropertyValue("LeftMargin",new Integer(-1000));
xTableProps.setPropertyValue("Width",new Integer(18000));


Thanks to all


mmm ... strange ... the macro

aTable = thisComponent.TextTables(0) aTable.HoriOrient = com.sun.star.text.HoriOrientation.LEFT_AND_WIDTH
aTable.LeftMargin=-1000
aTable.Width=18000


works like a charm for me.
Do you change the properties before you insert the table or after you insert the table ?


Regards

Stephan

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


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dott. Cristian Fonti
mailto: [EMAIL PROTECTED]
Centro Elaborazione Dati (CED) - Resp. Web Area
SCM Group S.p.a. http://www.scmgroup.com
via Emilia, 77 - 47900 Rimini (RN), Italy
Tel.: +39 0541 700163 Interno: 2163
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



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



Reply via email to