morpheus
7th November 2002, 16:27
Hello,
Word & Excel can be launched from BaaN.
But, I would like to open a particular document from BaaN IV, either from DEM, or using hyper link, or anything.
Any ideas...
mark_h
7th November 2002, 17:03
The same method used to launch Excel can also be used to launch other applications. You could create a simple session that when started it runs app_start for the specified document.
Mark
mark_h
7th November 2002, 20:37
Forgot to mention that you could check this post (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=7407). Also you may get some ideas from reading the code and utilities forum.
Good Luck!
Mark
morpheus
9th November 2002, 07:57
Hey! Mark,
Thanks for the post. I got what I wanted to.
But, is there a possibility of passing the arguments from the form (by the user), to the script. Like, the user passes the path of the application (word, excel, etc.), and also the path of that specific file, to be opened!?
mark_h
9th November 2002, 21:30
Not really sure I understand what you are asking. I usually use domains or tables to hold where applications are. For example I have an Excel device driver that when the user selects the device requires them to enter a filename. Based on the filename I know what macro to launch and which version of excel to launch. We have two sites with Excel installed in different places and different servers. So I think you can do what you are asking, but I am not positive if I understand what you are trying to do.
Mark
morpheus
11th November 2002, 07:49
Hello,
This is what I am looking for -
I'll be creating a session. The users, when execute that session, will be asked about the application to be launched, with the complete path. Then they will be asked about the file to be opened in that application, that again with the complete path. These two arguments, I plan to pass to app_start().
Here I am not concerned with the device.
mark_h
11th November 2002, 22:17
The device was just an example. The one thing I do on sessions is to ask for the complete path with the files. So for example M:\somefile would work. So in your session you could either ask them for the complete path and application. OR you could create an enumerated domain that would list each application that could be launched. As for the file I would always ask for the complete path and the filename.
So I think from what you are looking for the answer is yes you can use parameters. If you check the code and utilities forum you will see some samples of the app_start command. Just remember that they are just samples and not the only use of them.
Hope I helped.
Mark
morpheus
14th November 2002, 08:33
Thanks Mark! I did it.