Hi,
In the method run of class FormLetterService invoke print of customer account statement use the following code after statement: if (printout == Printout::Current)
(i.e after line#129)
if (formletterContract.getDocumentStatus() == DocumentStatus::Confirmation)
{
Use method this.createCustAccountStatement(custTable, filename) provided at the below link
Reference: community.dynamics.com/.../ax-2012-generate-customer-account-statement-as-pdf-through-x
}
Thanks,
Chaitanya Golla