I believe the following code is the key to getting this to work:
varReport.SubmitToAgent(varDS, “SystemTaskAgent”, 0, 0, Erp.UIRpt.MtlTags);
The trouble I am having is defining “varReport” and “varDS”. I have read through the following threads, but am still stuck.
Does anyone have a simplified example of printing a ‘standard’ report through code, in 10.2?
I have a ButtonClick customization that launched a report in E9, but the code conversion to E10 has rendered it non-functional. The ‘usings’ have all changed to Ice (appropriately, it seems), although a trace of the manual report execution reveal calls to Erp.Proxy.Rpt.
Anything identifying the proper using directives or references and perhaps the objects to be instantiated would be appreciated. Gues…
Hi all,
I’m well on my way to converting the external DLL we have to handle our process, however I’ve hit a snag when trying to send a BAQ report to the SystemTaskAgent from my custom code.
Here’s a little snippet of the code:
using (var bqReport = WCFServiceSupport.CreateImpl<Ice.Proxy.Rpt.BAQReportImpl>(_epiSession, Ice.Proxy.Rpt.BAQReportImpl.UriPath))
{
var bqDS = bqReport.GetNewParametersForReportId(BAQ_REPORT_ID);
string pnFilter = BuildPackNumFilter();
if (pnFilter != string.Emp…
Hi! I’m trying to print a job traveller report in customization code, and it works great with this code
////////////////////
Ice.Core.Session otSession = (Ice.Core.Session)this.oTrans.Session;
String strWorkstationID = Ice.Lib.Report.EpiReportFunctions.GetWorkStationID(otSession);
Erp.Proxy.Rpt.JobTravImpl report = WCFServiceSupport.CreateImpl<Erp.Proxy.Rpt.JobTravImpl>(otSession, Epicor.ServiceModel.Channels.ImplBase<Erp.Contracts.JobTravSvcContract>.UriPath);
Erp.Rpt.JobTravDataSet ds = r…
The above threads all involve setting the report parameters from scratch. Since the MtlTags form has already loaded with the parameters/dataset needed to run the report (except for the correct ReportStyleNum, which can be set with a DataView), it should just be a matter of calling those stored parameters for SubmitToAgent?