This post is machine-translated. The original post in german language can be found here.

Print text-document using X++

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.

These post applies to following versions:
Dynamics AX 2012, Dynamics AX 2009, Dynamics AX 4.0, Axapta 3.0

Add comment


Posts of the actual month
Juli 2022
© 2006-2022 Heinz Schweda | Imprint | Contact | German version | Mobile version
In order to provide you with better service, this site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.