Sorry for the similar message,
but the first was wrong.
I use this code to create 2 tabStop:

TabStop tb[]=new TabStop[2];
         tb[0]=new TabStop();
         tb[0].Position=8500;
         tb[0].Alignment=com.sun.star.style.TabAlign.CENTER;
         tb[1]=new TabStop();
         tb[1].Position=17000;
         tb[1].Alignment=com.sun.star.style.TabAlign.RIGHT;
         xCursorProps.setPropertyValue("ParaTabStops",tb);

Now, how can i go in the tabstop(like using the key tab)????
I use this code, but nothing (but no error):

XTextCursor xt = (XTextCursor)UnoRuntime.queryInterface(XTextCursor.class,tb[0]);
XText xTextheader = (XText) UnoRuntime.queryInterface(XText.class, xPropertySetStyle.getPropertyValue("HeaderText"));
xTextheader.insertString(xt," CENTER TEXT IN THE HEADER",false);


Thanks to all...

Cristian Fonti

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



Reply via email to