i try your code but nothing, the table remain into the page margin... (if i use TextFrame all is ok, but it create into the Frame a paragraph break after the table, pratically a blank line after the table, eventually, i can remove it??)...
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
Stephan Wunderlich ha scritto:
Hi Cristian,
i have a question:
there is a way to set the width of a table (i want to exceed the margin of the page)??
I try with the property Width but nothing....
Thanks to all
lets say you have a XTextTable in your document, then
atable = thisComponent.TextTables(0) atable.HoriOrient = com.sun.star.text.HoriOrientation.LEFT_AND_WIDTH
atable.width=18000
should set the width of it to 18cm
Hope that helps
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]
