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]>
---- LSpots keywords ?> ---- HM ADS ?>
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

