Hi Jürgen, thank you very much for your answer!
> Rony G. Flatscher wrote: >> it seems that the OOo installation under Windows does not install the >> OLE/COM typelib. Is this intentional, or a user error? > > we don't have such a typelib. All type information necessary for the > OLE automation bridge is generated dynamically from the UNO type library. > > We don't have a real COM language binding and that is the reason why > we haven't such a typelib. I see. >> If intentional can one generate the type library from DLLs (to use in >> the context of Windows ActiveX automation/scripting), if so how (which >> files to use for that) ? > which dll's? Probably not, maybe it would be possible to generate them > based on the type library but no tooling is available yet and no > tooling is planned. > If you have plans to go in this direction please let us know and we > can probably support you with the necessary input. Well, as I prefer an openplatform solution I am happy with the available Java binding which can be used from scripting languages to script/automate OOo (using Apache Jakarta's BSF, <http://jakarta.apache.org/bsf>, where version 2.4.0 is about to get released). OTOH I got a query from a Windows-only-user who wanted to know how addressing OOo would be different, and for that purpose the COM/OLE typelib was sought. It would allow for documenting the Windows exposed APIs at runtime. The respective is available in the Windows registry, one can create instances of the OOo COM classes, but querying for types and signatures just returns no information, e.g.: ----------------------- cut here ------------------- com.sun.star.ServiceManager Definitions from typelib: [LIBNAME] with the brief documentation: [LIBDOC] /In Registry since: / /20060704 09:26:06 / Description OpenOffice.org Service Manager (Ver 1.0) CLSID {82154420-0FBF-11d4-8313-005004526AB4} VersionIndependentProgID com.sun.star.ServiceManager ProgID com.sun.star.ServiceManager.1 LocalServer32 D:\Programme\OpenOffice.org 2.0\program\soffice.exe -nodefault -nologo show 0 Method[s] No. Name Documentation, Argument[s], Return Value show 0 Read-only Properties No. Name Documentation, Return Value show 0 Write-only Properties No. Name Documentation, Argument[s], Return Value show 0 Read/Write Properties No. Name Documentation, Argument[s], Return Value show 0 Methods with Unknown Invocation Type Properties No. Name Documentation, Argument[s], Return Value show 0 Event(s) No. Name Documentation, Argument[s], Return Value show 0 Constant(s) No. Name Value ------------------------------------------------------------------------ Created with ooRexx (Open Object <http://www.ooRexx.org> *Rexx) <http://www.RexxLA.org>* ("rgf_oleinfo.html") on [20060925 16:22:20] run by [Administrator/[EMAIL PROTECTED] ------------------------------------------------------------------------ ----------------------- cut here ------------------- Or one of the OOo documents: ----------------------- cut here ------------------- soffice.StarCalcDocument.6 Definitions from typelib: [LIBNAME] with the brief documentation: [LIBDOC] /In Registry since: / /20060704 09:26:06 / Description OpenOffice.org 1.1 Tabelle CLSID {7B342DC4-139A-4a46-8A93-DB0827CCEE9C} VersionIndependentProgID soffice.StarCalcDocument.6 ProgID soffice.StarCalcDocument.6 LocalServer32 D:\Programme\OpenOffice.org 2.0\program\soffice.exe -nodefault -nologo InProcHandler32 ole32.dll /[D:\WINDOWS\system32\ole32.dll]/ /[2005-07-26 06:39:49] [1,285,120 Bytes/] show 0 Method[s] No. Name Documentation, Argument[s], Return Value show 0 Read-only Properties No. Name Documentation, Return Value show 0 Write-only Properties No. Name Documentation, Argument[s], Return Value show 0 Read/Write Properties No. Name Documentation, Argument[s], Return Value show 0 Methods with Unknown Invocation Type Properties No. Name Documentation, Argument[s], Return Value show 0 Event(s) No. Name Documentation, Argument[s], Return Value show 0 Constant(s) No. Name Value ------------------------------------------------------------------------ Created with ooRexx (Open Object <http://www.ooRexx.org> *Rexx) <http://www.RexxLA.org>* ("rgf_oleinfo.html") on [20060925 16:22:41] run by [Administrator/[EMAIL PROTECTED] ----------------------- cut here ------------------- So in order to use the COM classes one needs to know the interfaces from the OOo documentation and can use them (the dispatching seems to work nicely). --- Again, it is not a problem for me. Just wanted to make sure, that it was not us who made an error at install time of OOo. Regards, ---rony
