bizen99
23rd July 2008, 07:00
Hi,

How can I open a session from visual Basic?

I want to call a session from visual Basic, and baan is already open.

Thanks
Bizen

kbabu1
23rd July 2008, 07:39
Hi Bizen,

You can write code in VB to open/run cmd.exe(Command Prompt) and pass the "bw.exe" (with path) and "<session name>" as the arguments to that call.

Because, you can start any session by 'run' program; by typing 'bw.exe <session name>' in the command prompt and press enter.

For Eg: "C:\Program Files\Baan\bin\bw.exe" "tdsls4100m000" to start the sales order session.

Hope it helps.

Regards

bizen99
23rd July 2008, 07:49
thanks, I already try this option.

But Baan is already open and I want to maintain the same instance, for license users.

nhhome
5th October 2009, 09:51
Hi,

How can I open a session from visual Basic?

I want to call a session from visual Basic, and baan is already open.

Thanks
Bizen

Set Baanobj = CreateObject("Baan.Application")
Baanobj.Timeout = 10
B_function = "zoom.to.menu(" & Chr(34) & "tcibd0501m000" & Chr(34) & _
",2," & Chr(34) & Chr(34) & "," & Chr(34) & Chr(34) & ",0,0)"

Baanobj.ParseExecFunction "ottstpstandard", B_function

goooch
2nd December 2009, 07:17
Hi Bizen,
I think ttstpoledaem should be started before you connect to Baan from VB
And also you should know the proper Baan Class Name in order to use it with GetObject function