06.11.2012, 15:11 | #1 |
Участник
|
ax-erp: How to print sales Invoice ?
Источник: http://microsoft-dynamics-ax-erp.blo...s-invoice.html
============== public void printInvoiceReport(PurchId _purchId) { ReportRun report; RecordSortedList List = new RecordSortedList(tableNum(VendInvoiceJour)); VendInvoiceJour VendInvoiceJour = VendInvoiceJour::findFromPurchId(_purchId); PurchFormLetter PurchFormLetter; ; if (VendInvoiceJour.RecId) { report = new ReportRun(new Args(ReportStr(PurchInvoice))); List.ins(VendInvoiceJour); report.args().object(List); report.query().interactive(false); report.report().interactive(false); report.args().parmEnum(0); report.args().parmEnumType(920); report.args().name("KeepSettings"); report.args().caller(PurchFormLetter); report.setTarget(PrintMedium::Screen); report.printJobSettings().setTarget(PrintMedium::Screen); report.printJobSettings().preferredTarget(PrintMedium::Screen); PurchFormLetter = PurchFormLetter::construct(DocumentStatus::Invoice); PurchFormLetter.updatePrinterSettingsFormLetter(report.printJobSettings().packPrintJobSettings(), PrintSetupOriginalCopy::Original); PurchFormLetter.updatePrinterSettingsFormLetter(report.printJobSettings().packPrintJobSettings(), PrintSetupOriginalCopy::Copy); // print invoice VendInvoiceJour.printJournal(PurchFormLetter); } } Источник: http://microsoft-dynamics-ax-erp.blo...s-invoice.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|