We do not have APR. We are looking at creating a button on Order Entry that a user would click that would run the SOA report, save it as a pdf at some file location, and then the code would have to attach the pdf to the outgoing email. Does anyone have any insight or sample code they could post to let me know if this is possible?
Thank you.
josecgomez
(Jose C Gomez)
September 3, 2020, 9:02pm
2
There are a ton of examples in the forum here of how to run a report in code. Give the olde search a whirl
Carson
(Carson Ripple)
September 3, 2020, 9:22pm
3
Also get a quote on APR. I think it’s one of the cheaper modules.
Hari_Dutt
(Hari Dutt)
September 4, 2020, 4:47am
4
Please add the below mentioned code on button click event and pass the order number .
private void btnPrintSOA_Click(object sender, System.EventArgs args)
{
salesOrderAckAdapter soa = new salesOrderAckAdapter(oTrans);
soa.BOConnect();
soa.GetNewParameters();
soa.ReportData.SalesOrderAckParam[0].OrderNum = 123770;
soa.ReportData.SalesOrderAckParam[0].AutoAction = “PREVIEW”;
soa.ReportData.SalesOrderAckParam[0].AgentID = “SystemTaskAgent”;
soa.ReportData.SalesOrderAckParam[0].ReportStyleNum = 1003;
soa.ReportData.SalesOrderAckParam[0].WorkstationID = Ice.Lib.Report.EpiReportFunctions.GetWorkStationID((Ice.Core.Session)oTrans.Session);
soa.ReportData.SalesOrderAckParam[0].ArchiveCode = 7;
soa.SubmitToAgent(“SystemTaskAgent”,0,0);
MessageBox.Show(“Print Job Has been submitted.”);
}
1 Like