mno4it
12th April 2012, 13:05
Hello people,

We have the baan client version B40c.100 installed on Windows 7 client machines. The user interface runs fine.
But when we try to connect to BAAN using OLE (from Excel), we get problems.

First, the ActiveX system won't find the default configuration when running
Set baanObj = CreateObject("Baan4.Application")
Then, (using the .bwc-file-name within the CreateObject) the BW-login screen pops up, but after logging in, the BW-messages window presents a message: LoadTypeLib failed, error = -2147319779
The object in Visual Basic cannot be accessed, and shows Run-time error '447': Object doesn't support current locale setting.

Has anyone any idea how to install the BW-client correctly to avoid this?
Could it have something to do with user-rights?

Thanks!

Michael Nooitgedagt

mark_h
12th April 2012, 15:30
I think this is the correct forum for this type question. I have not really used this a whole lot - mostly testing and playing. Anyway - look at you .bwc client file. Run the configure option and look at the automation tab. See the class name? That is what should go in Set baanObj = CreateObject("Baan4.Application") - so in my case it would be Set baanObj = CreateObject("Baan4.Application.Default"). All of my .bwc files have something different in the automation tab and that is what I use to connect to the different environments.

mno4it
17th April 2012, 12:58
Hi Marc,

thanks for thinking with us -
But the problem was finally solved by installing the 103 version of the BAAN Windows client software!
:)

See attached file for a simple example.

/MNO

mark_h
17th April 2012, 17:19
Interesting - to get your example to work I had to change it to baan4.application.701 to get it to work. Plus change compnr to 701. Glad you found a solution.