[api-dev] TextCursor at ViewCursor

2005-01-29 Thread Marc Santhoff
Hi! Since some people are discussing BASIC issues, I'd like to ask somthing, too: In a text document, how can i get a XTextCursor at the current position of the ViewCursor? The only way I found until now is to mark from the ViewCursor to the start of the doc, get the selected text and from that

[api-dev] Re: [users] Creating documents programmatically using UNO and MSVC

2005-01-29 Thread G. Roderick Singleton
On Sat, 2005-01-29 at 17:26 +0100, Antonio Leonforte wrote: Hi all, this is my first post on this list. I have searched for a while for the info I need, but I could find nothing helpful. Please let me know it this is not the appropriate list to post to. I would make clear first that I

Re: [api-dev] TextCursor at ViewCursor

2005-01-29 Thread Marc Santhoff
Am Sa, den 29.01.2005 schrieb Darragh Sherwin um 18:15: Marc, Hi Darragh, Marc Santhoff wrote: In a text document, how can i get a XTextCursor at the current position of the ViewCursor? viewCursor = document.getCurrentController().getViewCursor() textCursor =

Re: [api-dev] TextCursor at ViewCursor

2005-01-29 Thread Laurent Godard
Hi, In a text document, how can i get a XTextCursor at the current position of the ViewCursor? viewCursor = document.getCurrentController().getViewCursor() textCursor = document.Text.createTextCursor() //TextCursors include the TextRange service viewCursorRange = viewCursor.getEnd()

[api-dev] Looking for demo MSVC++ projects controlling OpenOffice in order to programmatically create MSWord-compatible documents

2005-01-29 Thread Antonio Leonforte
Hi all, this is my first post on this list (I actually have been redirected to this list after having posted to a more general one). I would like to use OpenOffice to create .doc documents programmatically by invoking UNO API from a C++ application. My dev environment is Win2K,

Re: [api-dev] Python in 1.9.74

2005-01-29 Thread Andrew Douglas Pitonyak
Ian Laurenson wrote: I have put together a uno package that contains a Python component. The component uses the os module. The package installs and runs fine 1.1.4. In 1.9.74 (for Linux - Mandrake 10.1) I get the following error message when installing the package via: Tools Package Manager...

[api-dev] How to create a database in OOo 2.0?

2005-01-29 Thread Andrew Douglas Pitonyak
I am so close, I can smell it, but it does not work. Any comments on the steps that I am missing... I think that I need to set default keys and that sort of thing... The following macro tries to create a databsae document... Sub NewDB Dim sDBUrl As String 'URL of a New Database document.