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
Dezember 2021
MoTuWeThFrSaSu
 12345
6789101112
13141516171819
20212223242526
2728293031 
 
© 2006-2021 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.