[api-dev] Problem with insertDocumentFromURL

2005-03-14 Thread Cristian Fonti
Hi to all, i have a problem using the method insertDocumentFromURL: when i use it to insert some formatted text (font size, font color,etc...) from another document, in the destination file appear at the top of the document 2-3 blank row... the code snipplets is: xTextDocument = (XTextDocumen

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-14 Thread Andrew Douglas Pitonyak
Cristian Fonti wrote: Hi to all, i have a problem using the method insertDocumentFromURL: when i use it to insert some formatted text (font size, font color,etc...) from another document, in the destination file appear at the top of the document 2-3 blank row... the code snipplets is: xTextDoc

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-15 Thread Cristian Fonti
Andrew Douglas Pitonyak ha scritto: Cristian Fonti wrote: Hi to all, i have a problem using the method insertDocumentFromURL: when i use it to insert some formatted text (font size, font color,etc...) from another document, in the destination file appear at the top of the document 2-3 blank ro

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-15 Thread Mathias Bauer
Cristian Fonti wrote: > Hi to all, > i have a problem using the method insertDocumentFromURL: when i use it > to insert some formatted text (font size, font color,etc...) from > another document, in the destination file appear at the top of the > document 2-3 blank row... the code snipplets is:

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-15 Thread Andrew Douglas Pitonyak
Cristian Fonti wrote: Andrew Douglas Pitonyak ha scritto: Cristian Fonti wrote: Hi to all, i have a problem using the method insertDocumentFromURL: when i use it to insert some formatted text (font size, font color,etc...) from another document, in the destination file appear at the top of the

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-16 Thread Cristian Fonti
Andrew Douglas Pitonyak ha scritto: Cristian Fonti wrote: Andrew Douglas Pitonyak ha scritto: Cristian Fonti wrote: Hi to all, i have a problem using the method insertDocumentFromURL: when i use it to insert some formatted text (font size, font color,etc...) from another document, in the desti

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-16 Thread Marc Santhoff
Am Mi, den 16.03.2005 schrieb Cristian Fonti um 10:12: [...] > > Use something similar to the following: > > > > oCursor.getText().insertString(oCursor, "text to insert", False) > > > I try, but so the "text to insert" is append at the end of the document > after all the RTF and not between them..

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-16 Thread Michael Hoennig
Hi Cristian, > TextCursor.getText().insertString(TextCursor,"- > ",false); After this statement, "---..." will be inserted right behind the newly inserted document. Then, in the next loop: > TextCursor=xText.createTextCursor(); You create a c

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-16 Thread Marc Santhoff
Am Mi, den 16.03.2005 schrieb Michael Hoennig um 21:22: [...] > For the second usage of gotoEnd(), also collapseToEnd() should work. See > reference manual for more information. > > And better do not use view cursors for model based functionality, as Marc > suggested. You're right, I assumed the

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-17 Thread Cristian Fonti
Michael Hoennig ha scritto: Hi Cristian, TextCursor.getText().insertString(TextCursor,"- ",false); After this statement, "---..." will be inserted right behind the newly inserted document. Then, in the next loop: