This post is machine-translated. The original post in german language can be found here.
These post applies to following versions:
Dynamics AX 2012, Dynamics AX 2009, Dynamics AX 4.0, Axapta 3.0
Dynamics AX 2012, Dynamics AX 2009, Dynamics AX 4.0, Axapta 3.0
|
|
|
|
|
|
Below you'll find a example, how to print a Text-document using X++.
static void printTextFileFromAX(Args _args) { WinAPI::shellExecute("c:\windows\system32\NOTEPAD.EXE", @'/pt "c: emp est.txt" "An OneNote 2010 senden"'); }Note: "An OneNote 2010 senden" is the name of the printer.