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]



Reply via email to