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
   )

Comments

Popular posts from this blog

x++ code to Generate cheque for vendor payment journal

Import Procurement Hierarchy / Categories with out code in ax 2012

Copy favorites From one user to another user - Ax 2012