Email Invoices from Process Orders form
Posted: Wed Aug 31, 2011 9:01 am
So,
based on sample code elsewhere in this forum, I have invoices being emailed out of Sales Order Entry quite happily.
I'm stuck trying to achieve the same thing from the 'Process Orders' form, but there are a few things missing that are tripping me up:
1) an MDIParent (for Set PrintReportObject.CrystalApplicationObject = MDIParentObject.GetJWPrintObject)
2) the SalesOrderObject passed to the 'ProcessCompleted' breakout is not the same as the SalesOrderObject passed to any of the breakouts in Sales Order Entry, and is missing AddEmailLog and SystemProfile.
I can code around SalesOrderObject limitations (by creating a JiwaSO.clsSalesOrder based on the JiwaProcessSO one I *do* have).
However, how do I get hold of a CrystalApplicationObject ?
/Ryan
based on sample code elsewhere in this forum, I have invoices being emailed out of Sales Order Entry quite happily.
I'm stuck trying to achieve the same thing from the 'Process Orders' form, but there are a few things missing that are tripping me up:
1) an MDIParent (for Set PrintReportObject.CrystalApplicationObject = MDIParentObject.GetJWPrintObject)
2) the SalesOrderObject passed to the 'ProcessCompleted' breakout is not the same as the SalesOrderObject passed to any of the breakouts in Sales Order Entry, and is missing AddEmailLog and SystemProfile.
I can code around SalesOrderObject limitations (by creating a JiwaSO.clsSalesOrder based on the JiwaProcessSO one I *do* have).
However, how do I get hold of a CrystalApplicationObject ?
/Ryan