Hi,

I want to create a report as a PDF-file and send it as an attachment to en
email automatically.  The reports are created in a batch-routine.

Everything works just fine, except that I get a preview for each report:
Axapta generates the PDF-file to disk, and than the report pops up in a
window in Axapta as well.  The report is generated in batch, which means that
I can get hundreds of windows open at the same time.

How can I prevent the window from popping up in Axapta?
The code is:

printsettings = new printjobsettings();
printSettings.setTarget(printMedium::File);
printSettings.format(printformat::PDF);
filename=winapi::getTempPath() + RMA_id +  ".pdf";
printSettings.fileName(filename);

NERA_RepairQuotationReport::runNoPrompt(RMA_id,
printSettings.packPrinterSettings());

Thank's in advance for any help

_____________________________________
With best regards

Lars H. Jacobsen
Systemkonsulent

Columbus IT Partner Bergen AS
<mailto:[EMAIL PROTECTED]> 





YAHOO! GROUPS LINKS




Reply via email to