Взято отсюда
create Pdf invoice report
X++:
static void Job15(Args _args)
{
CustInvoiceJour custInvoiceJour;
EPSendDocument sendDocument;
Filename filename;
Args args;
;
while select custInvoiceJour
{
filename = "c:\\" +'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();
break; //TODO: remove
}
}