Показать сообщение отдельно
Старый 11.04.2009, 10:43   #2  
DSPIC is offline
DSPIC
Боец
 
1,077 / 1243 (44) ++++++++
Регистрация: 11.04.2008
Взято отсюда 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
    }
}