Invoke application/.exe from Ax
Hi,
To invoke the other application from ax. we can use WinAPI class which is available in Axapta.
the syntax is as follow,
WinAPI::shellExecute("notepad"); //Path of the exe file
//Path of the exe file with additional parameter
WinAPI::shellExecute(
Filename _lpFile,
str _lpParameters = '',
str _lpDirectory = '',
str _lpOperation = #ShellExeOpen,
int _show = #SW_SHOWNORMAL,
boolean _waitForCompletion = false
)
To invoke the other application from ax. we can use WinAPI class which is available in Axapta.
the syntax is as follow,
WinAPI::shellExecute("notepad"); //Path of the exe file
//Path of the exe file with additional parameter
WinAPI::shellExecute(
Filename _lpFile,
str _lpParameters = '',
str _lpDirectory = '',
str _lpOperation = #ShellExeOpen,
int _show = #SW_SHOWNORMAL,
boolean _waitForCompletion = false
)
Comments
Post a Comment