Quantcast
Viewing all articles
Browse latest Browse all 72043

How to send report from ax to EP in AX 2009?

Hi,

this method generates a report. How to send it to EP that the user could save it as a pdf file?

public static void rep2PDF()
{
    EPSendDocument sendDocument;
    CustInvoiceJour custInvoiceJour;
    Filename filename;
    ;
    select firstonly custInvoiceJour;
    filename = WinAPI::getTempPath() +'MyInvoice.pdf';
    sendDocument = new EPSendDocument(custInvoiceJour);
    sendDocument.parmOriginal(true);
    sendDocument.parmFileName(filename);
  //  Make document will run the report and send it to a PDF file with the path specified in filename
    sendDocument.makeDocument();
}


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>