Nicole Scholz wrote:
Hi!
Thank you for your answer. Unfortunately I dont know how to work with a struct
correctly. Can you send me an example (in Java or Basic) how I can set the
column width?
Hi,
how about that:
Sub Main
xtable = thiscomponent.createinstance("com.sun.star.text.TextTable")
xtable.initialize(3,3)
xtable.attach( thiscomponent.gettext.end )
acolumnseparators = xtable.TableColumnSeparators
nColSum = xtable.tablecolumnrelativesum
for i = 0 to ubound( acolumnseparators )
print acolumnseparators( i ).position
next i
acolumnseparators( 0 ).position = nColSum / 5
acolumnseparators( 1 ).position = nColSum / 5 * 4
xtable.TableColumnSeparators = acolumnseparators
End Sub
The mailing list address I mentioned in my last mail was wrong. The correct
address of the api mailing list is: [EMAIL PROTECTED]
Please subsribe to that list as this is the right one for questions
regarding use of the API.
Regards,
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]