B Marcelly Super User

Joined: 12 May 2004 Posts: 1145 Location: France
|
Posted: Wed Aug 01, 2007 5:28 am Post subject: COM-Automation using Delphi or VB-like languages |
|
|
Hi all,
If you want to program OpenOffice.org from MS-Windows with COM-Automation you may be interested by one of the following open-source toolkits :
Delphi OOo (for Delphi) http://ooomacros.org/dev.php#133853
This is a revised and improved version adapted to OpenOffice.org 2.x
VBx OOo http://www.ooomacros.org/dev.php#240562
The downloaded file contains 3 toolboxes dedicated to each variant of Microsoft Basic.
Each toolbox has its own folder:
VB_OOo_v10en\ for VB.NET (Visual Basic 2005)
VBA_OOo_v10en\ for VBA or VB6
VBS_OOo_v10en\ for VBScript
With these toolkits you will be able to convert very easily OpenOffice.org Basic macros into one of these languages. Some of the offered routines : ConnectOpenOffice, DisconnectOpenOffice, CreateUnoService, ConvertToURL, CreateUnoStruct, MakePropertyValue, CreateProperties, runScript, runBasicMacro, Xray. The complete list of API constants and enums is provided, with a tool to update it from the SDK.
In each sub-folder Annexes\ you will find the corresponding documentation, e.g. OOo_COM_VBNET_v10en.odt
Hope this helps.
______
Bernard |
|