Skip to main content

Save AX 2009 report in to PDF format.


public boolean fetch()
{
boolean ret;
;

// The below code will save the report of ax 2009 in to pdf format and thus help you to send the report to e-mail.

element.printJobSettings().setTarget(Printmedium::File);
element.printJobSettings().format(Printformat::PDF);
element.printJobSettings().fileName(@’C:\temp\myfile.pdf’);

ret = super();
return ret;
}

Comments