spartacus
19th March 2004, 12:21
Hi,

is there any fast/easy way, to open word from baan, with an particular document ? (if possible without OpenWorld).

Thanks
Spartacus

lbencic
19th March 2004, 17:01
You can use the app_start (http://www.baanboard.com/programmers_manual_baanerp_help_functions_client_file_access_app_start) command to call word and open a document, no Open World required. I have had to first transfer the file to the client PC, then call word. I have used:


server2client("\\SERVIERID\Baan\TMP\HazMat1.txt", "C:\TEMP\HazMat1.txt", 1)
app_start("winword.exe C:\TEMP\HazMat1.txt", "", "", "", "")

You may need the full path for Word if it is not defined in your search path.

Also, people have mentioned the tgwms0004.start.application (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=14802&highlight=appstart) function, which may have more options - I have not used that.

spartacus
23rd March 2004, 17:20
Hi Ibencic,

seems to be a good idea. We will check, if it works for us.

lbencic
23rd March 2004, 17:51
Make sure to check this post (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=14840) with client2server notes at the bottom from j. streun's testing.

Good luck.

Ruskin
30th March 2004, 00:29
Be careful, if you use app_start, then the full path to winword.exe must be used.. This may be different on the different client machines...

I would recommend using app_start, but starting the following app (passing the required parameters, as per the other posts);

app_start("cmd /c start winword.exe c:\loc\document.doc", ...

kbartelds
30th March 2004, 10:26
Depending on the client version probably: if winword is not specified, the extension is taken to open the clients default program for the extension.

Regards,
Klaas

skosana
1st April 2004, 00:54
We can use tgwms0004.start.helper.by.name. This is in the tgwms0004 dll. There is a session 'Maintian Helper Applications' - tgwms9140m000, where we can store the path of the execuatable.