Stephan Bergmann ha scritto:
There is a problem, because i must insert a big text(40-50 rows), not only a string, and i want to allign the text to the tabstop... so with the TAB (ASCII 9) i can't do nothingMichael Hoennig wrote:
Hi Cristian,
Now, how can i go in the tabstop(like using the key tab)????
Just use a TAB (ASCII 9) in your string. Too simple?
Ok, i understand what is the problem for the TextCursor, so how can i do to use the tabStop that i have created?? I supposed that is similiar to paragraph, so i create a XParagraphCursor and i use gotoNextParagraph, but nothing...
XTextCursor xt = (XTextCursor)UnoRuntime.queryInterface(XTextCursor.class,tb[0]);
Here you query an XTextCursorfrom a TabStop struct? That should throw an exception or at least return null, don't know the UNO spec for the case where queryInterface is used on a non interface.
Undefined behaviour (i.e.: never do that in your code). The current implementation will most probably return null.
-Stephan
XText xTextheader = (XText) UnoRuntime.queryInterface(XText.class, xPropertySetStyle.getPropertyValue("HeaderText"));
xTextheader.insertString(xt," CENTER TEXT IN THE
HEADER",false);
And this should at latest throw a null pointer exception. It does not?
Michael
Thanks...
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]