Buenos dias Alexandro, > There are some good snippets to connect to UNO through COM: > http://www.oooforum.org/forum/viewtopic.phtml?t=9815 > > You can see how to connect to UNO on all these languages: > A1: Visual Basic > A2: C (verified both with Visual Studio and gcc) > A3: C++ (only short version given, see SDK for full example) > A4: C# (.NET Framework needed) > A5: Python (win32 package by Mark Hammond required) > A6: ActiveState Perl > A7: Ruby > A8: TCL > A9: Delphi > A10: PHP > Enclosed you'll find a suggested "A11" snippet, which is an ooRexx sample of driving OOo via COM/OLE as a raw text file and a html rendering with syntax highlighting.
Regards, ---rony P.S.: The same functionality is available via "BSF4Rexx" in a platform independent manner, such that scripts can run *unchanged* on Windows and Linux (cf. <http://wi.wu-wien.ac.at/rgf/rexx/bsf4rexx/current/>). P.P.S.: Surprisingly for me, ooRexx 3.2.0 which got released about two weeks ago, hit the top 20 Sourceforge projects (cf. <http://sourceforge.net/project/showfiles.php?group_id=119701>) for an entire week!
/* <http://www.ooRexx.org>, 2007-11-21, --rgf */ objServiceManager=.OleObject~new("com.sun.star.ServiceManager") starDesktop=objServiceManager~createInstance("com.sun.star.frame.Desktop") props=.array~of() /* create an empty array of properties */ doc=starDesktop~loadComponentFromUrl("private:factory/swriter","_blank", 0, props) doc~getText~setString("Hello World from ooRexx!")
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
