boXer14
30th March 2006, 13:47
hello all,

Does anyone already write a OOo macro with BaaN IV OLE ?

i'm trying this macro in OOo :

Sub Test_Ole_Baan
Dim OleService
Dim Baan

OleService = CreateUnoService("com.sun.star.bridge.OleObjectFactory")

Baan = OleService.CreateInstance("Baan4.Application.ovi")

Baan.Quit

End Sub

Bw opens but send an error message :

DispGetIDsOfNames failed, error = -2147352570

any help appreciated (and sorry for poor english...)

tia

boXer14
31st March 2006, 11:09
well,

looking at OOo sdk, i found that com.sun.star.bridge.OleObjectFactory is deprecated since OOo 2.0.
New service is com.sun.star.bridge.oleautomation.Factory.

but i still have same error