carice
5th March 2002, 11:50
Hi,
Iwant to run a vb script while a baan dll is running and pass some vars to it. Is this possible in baan and how do you do it? Has anybody an ex.?
Thanks
mark_h
5th March 2002, 13:48
I am attaching a sample piece of code from an Excel macro that runs a function server DLL on our Baan server. I did not clean it up. This comes from using some of the OLE automation examples and a little help from Gordon. I think there are better experts lurking here than me.
Mark
bh_vfp
12th March 2002, 16:01
Mark,
In your example you mentioned a automatic connection by changing something in your registry entry.
What did you change ?
Bas
mark_h
12th March 2002, 16:29
I used regedit to go in and specify which .bwc file to execute. I did this because I did not want to type my password when using the excel link. See the attached file. Usually I would recommend letting the program prompt you for your password. In the b4a config file I saved my password.
Mark
wgarcia
10th February 2005, 16:11
Bueno,
En realidad via VB tu puedes crear una coneccion, realizar las operaciones dentro de baan y salir.
Sin embargo, habras notado que una vez realizada la conexion, siempre se utiliza la misma (si no la abandonas).
Otra forma es entonces realizar esta conexion con baan pero no desde el codigo visual, sino desde la activacionn del bw.exe, y despues ejecutar tu codigo VB.
Al correr en el servidor WEB el cliente bw, a este le podras pasar como parametro el archivo .BWC que deseas. Por ejemplo si el usuario web es jorge, puedes construir la intruccion c:\archivos de programa\baanV\bin\bw jorge.bwc
Claro que en servidor deben existir las posibles conexiones que reciban desde la pagina web y mejor si puedes dejar configurado el password a cada uno de ellas, sin embargo para eso del password tambien hay soluciones en baanboard.
Buena suerte.
wgarcia
10th February 2005, 20:23
Good,
In fact via VB your you can create a conection to carry out the operations inside baan and to leave.
However, you will have noticed that once carried out the connection, the same one is always used (if you don't abandon her).
Another form is then to carry out this connection with baan but not from the visual code, but from the activation of the bw.exe, and later to execute your code VB.
When running in the servant WEB the client bw, to this you rot him to pass as parameter the file. BWC that you want. For example if the user web is jorge, you can build the intruccion programa\baanV\bin\bw c:\archivos jorge.bwc
Undoubtedly in servant the possible connections that you/they receive should exist from it paginates it web and better if you can leave configured the password to each one of them, however for that of the password there are also solutions in baanboard.
Good luck.
binoy000
17th June 2010, 10:01
I used .....
Mark
Hi Mark,
I am calling BaaN DLL from aspx.vb and doing a trans.
At the end I am closing that by BaaNObj.Quit if Nothing or Assign Nothng then Quit.
Even then, I could see through the bshel window oledemons for each connection attempts and active till I finally clear manually. (bshells exit only if time out is set...or it will be on server as a ntbshell)
How to go...?
My scenario is multiple connections for each trans as each row in an excel is an independant trans.
Regards,
Binz.
anthony peiris
28th June 2010, 16:02
Hello Gurus,
What DLL I should use to invoke BaaN Session( using c# .net)