Skip to main content

Posts

Showing posts with the label Add range in job using axapta

Run the report and send it to a PDF file

EPSendDocument sendDocument; InventTransferJour inventtransferjour ; Filename filename; ; select firstonly inventtransferjour where inventtransferjour.TransferId == 'AB001853' && inventtransferjour.UpdateType == InventTransferUpdateType::Receive; filename = WinAPI::getTempPath() +'MyInvoice.pdf'; sendDocument = new EPSendDocument(inventtransferjour); 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();