[Axapta-Knowledge-Village] generate sales invoice report through code and save as pdf file in file system.

2009-12-03 Thread giridharraj
Hi, I have written the following code to generate a sales invoice report and save as a pdf file in the file system. But this code is not saving the report as pdf instead it is displaying the report on the screen. can anyone correct this code.. CustInvoiceJour InvJTbl; SalesId Id;

Re: [Axapta-Knowledge-Village] generate sales invoice report through code and save as pdf file in file system.

2009-12-03 Thread mni_col
Hi, try CustInvoiceJour.printJournal() static void printInvoice(Args _args) { SalesFormletter SalesFormletter; printJobSettingsprintJobSettings; CustInvoiceJour CustInvoiceJour; ; SalesFormletter = SalesFormletter::construct(DocumentStatus::Invoice,false);