My ultimate goal is for a Navision user to be able to run an executable 'A.exe' that will, amongst many other things, create a Navision menu item under the 'File' menu that will launch another executable 'B.exe'.
How can I programmatically create such a Navision menu item? My programming language of choice is C#. And I must develope this using VisualStudio.NET.
Please be specific in your reply as I am a beginner with Navision.
Thank you in advance for your support.
0
Comments
I m not getting exactly what u r trying to say, by the way if you want to call navision from some where outside you can use SHELL commad, with most of the languages it's available.
Let me know this in detail.
Roshan
RIS Plus, LLC
Please be specific in your reply as I am a beginner with Navision.
From the help:
Example
Here is an example of how you can use the SHELL function:
SHELL('c:\joe\myprog.exe', 'arg1', 'arg2');
This statement executes a program named myprog.exe in the directory c:\joe. There are two arguments, arg1 and arg2, which are passed to the function. To call the DOS command DIR, you would use this code:
CommandProcessor := 'c:\command.com';
Argument := '/c';
DOSCommand := 'dir';
SHELL(CommandProcessor, Argument, DOSCommand);
So that answers how to run an external application, but you are not going to be able to use an external program to create a new menuitem.
-a
When you say: "you are not going to be able to use an external program to create a new menuitem", does that mean that it is physically impossible for a Navision user to click on an executable that I have created and have that executable create a menu item in that users installed Navision application?
http://www.BiloBeauty.com
http://www.autismspeaks.org
Navision is not object oriented.
-a