subesse
24th July 2008, 12:19
Hi, I am trying to use start.application.local to start notepad with a textfile I created on Baan.

But I don't get it functioning.

Can somebody please give me a small example of how to call this function.
I get a problem on 3rd argument, something like , REF not expected.

But don't understand how to solve this. So please a working example of starting notepad after I downloaded the textfile with server2client.

mark_h
24th July 2008, 15:07
See this thread (http://www.baanboard.com/baanboard/showthread.php?t=28775&highlight=start+application+local). Additional threads can be found using start application local.

subesse
24th July 2008, 15:50
Hi Mark,

Thanks for replying. I read this thread, but still don't understand what is going wrong.

I know this function is in library ttdllbw, so added this.
I call the function in way described below, but still get an error on 3rd argument. Can you show me how to call this function? I don't understand at all.

long e
start.application.local("notepad.exe c:\temp\tt.txt",true,e)

mark_h
24th July 2008, 16:53
Hmmm - you code worked just fine on my machine. You might want to run bic_info6.1 (or your version) on ottdllbw. Check the parameters on start.application.local and make sure your version is the same. One note - I ran your code directly and let it create the tt.txt file. The second time I ran it I just let it bring up what was in the file from the first run.

Keep in mind that you may need a tools patch.

george7a
24th July 2008, 17:12
Hi,

Please post your code, or at least the relevant function so that we can look into it.

- George