Источник:
http://blogs.bojensen.eu/?p=4655
==============
Here is how you can print a report with code in AX 2009: void clicked(){ Args args; ReportRun reportRun; SalesFormLetter salesFormLetter; PrintJobSettings printJobSettings; CustConfirmJour custConfirmJour; RecordSortedList list = new RecordSortedList(55); SalesTable salesTableUpdate; ; SELECT firstonly custConfirmJour order by ConfirmID desc where custConfirmJour.SalesId == salesTable.SalesId ; list.ins(custConfirmJour); args = new Args(ReportStr(SalesConfirm)); printJobSettings [...]
Источник:
http://blogs.bojensen.eu/?p=4655