I have a method directive using this code that I got working to automatically send out pack slips with some related information (thanks for the code!).
I ran into an issue when I had my shipping manager try to run this; he is getting weird errors on his end; a ‘PRINTER_DOESNT_EXIST’ error and an ‘Object Reference Not Set’ error that points to “Ice.Lib.Reporting.PdfPrintDocument.CreateAndConfigurePdfPrint”. I confirmed that he has no issue manually printing PDF’s on his computer.
I ran a trace on myself, and had him run a trace, and I noticed some differences on the SubmitToAgent method of the SSRS report we’re running. It seems that when I run it, there are no values for the “RptPageSettings” and “RptPrinterSettings” parameters.
When my Shipping Manager runs it, the trace shows values for both of these parameters.
Anyone have any idea what steps I can try to fix this issue? I have no idea where to even start with printer issues so any help is appreciated. Trace Log snippets from myself (Working) and my Shipping Manager (Not Working) below.
I can post code snippets as well, but the code is pretty much identical to everything else on this thread in terms of setting the parameter row values for printing.
[details="Trace Log - Working"]
<tracePacket>
<businessObject>Erp.Proxy.Rpt.PackingSlipPrintImpl</businessObject>
<methodName>SubmitToAgent</methodName>
<appServerUri>https://centralusdtapp23.epicorsaas.com/SaaS736/</appServerUri>
<returnType>System.Void</returnType>
<localTime>1/25/2023 14:39:05:8760716 PM</localTime>
<threadID>1</threadID>
<correlationId>3bc2d7a9-40ea-4a63-8606-5b83785c3517</correlationId>
<executionTime total="760" roundTrip="754" channel="0" bpm="1" bpmDataForm="0" other="5" />
<retries>0</retries>
<parameters>
<parameter name="ds" type="Erp.Rpt.PackingSlipPrintDataSet">
<PackingSlipPrintDataSet xmlns="http://www.epicor.com/Ice/300/Rpt/PackingSlipPrint/PackingSlipPrint">
<PackingSlipParam>
<PackNum>0</PackNum>
<PrintingOptions>S</PrintingOptions>
<AssignLegalNumber>false</AssignLegalNumber>
<EnableAssignLegalNumber>false</EnableAssignLegalNumber>
<DCHdrList></DCHdrList>
<PackNumList>102973</PackNumList>
<StyleNumExt>1001</StyleNumExt>
<EnableIncludePCID>false</EnableIncludePCID>
<IncludePCID>false</IncludePCID>
<DocCopyNum></DocCopyNum>
<DraftMode>false</DraftMode>
<DemandContractList></DemandContractList>
<IncludeInventoryAttributes>false</IncludeInventoryAttributes>
<SysRowID>00000000-0000-0000-0000-000000000000</SysRowID>
<AutoAction>SSRSPrint</AutoAction>
<PrinterName></PrinterName>
<AgentSchedNum>0</AgentSchedNum>
<AgentID>SystemTaskAgent</AgentID>
<AgentTaskNum>0</AgentTaskNum>
<RecurringTask>false</RecurringTask>
<RptPageSettings></RptPageSettings>
<RptPrinterSettings></RptPrinterSettings>
<RptVersion></RptVersion>
<ReportStyleNum>1001</ReportStyleNum>
<WorkstationID>myname</WorkstationID>
<TaskNote></TaskNote>
<ArchiveCode>0</ArchiveCode>
<DateFormat>m/d/yyyy</DateFormat>
<NumericFormat>,.</NumericFormat>
<AgentCompareString></AgentCompareString>
<ProcessID></ProcessID>
<ProcessCompany></ProcessCompany>
<ProcessSystemCode></ProcessSystemCode>
<ProcessTaskNum>0</ProcessTaskNum>
<DecimalsGeneral>0</DecimalsGeneral>
<DecimalsCost>0</DecimalsCost>
<DecimalsPrice>0</DecimalsPrice>
<GlbDecimalsGeneral>0</GlbDecimalsGeneral>
<GlbDecimalsCost>0</GlbDecimalsCost>
<GlbDecimalsPrice>0</GlbDecimalsPrice>
<FaxSubject>Test Email</FaxSubject>
<FaxTo></FaxTo>
<FaxNumber></FaxNumber>
<EMailTo>myemail@mycompany.com</EMailTo>
<EMailCC></EMailCC>
<EMailBCC></EMailBCC>
<EMailBody>Test Body</EMailBody>
<AttachmentType>PDF</AttachmentType>
<ReportCurrencyCode>USD</ReportCurrencyCode>
<ReportCultureCode>en-US</ReportCultureCode>
<SSRSRenderFormat>PDF</SSRSRenderFormat>
<UIXml></UIXml>
<PrintReportParameters>false</PrintReportParameters>
<SSRSEnableRouting>false</SSRSEnableRouting>
<DesignMode>false</DesignMode>
<RowMod>A</RowMod>
</PackingSlipParam>
[/details]
[details="Trace Log - Not Working"]
<tracePacket>
<businessObject>Erp.Proxy.Rpt.PackingSlipPrintImpl</businessObject>
<methodName>SubmitToAgent</methodName>
<appServerUri>https://centralusdtapp23.epicorsaas.com/SaaS736/</appServerUri>
<returnType>System.Void</returnType>
<localTime>1/25/2023 09:56:22:2359559 AM</localTime>
<threadID>1</threadID>
<correlationId>1ec422d9-53c2-47cd-977d-c35baffd60b4</correlationId>
<executionTime total="193" roundTrip="186" channel="0" bpm="0" bpmDataForm="0" other="7" />
<retries>0</retries>
<parameters>
<parameter name="ds" type="Erp.Rpt.PackingSlipPrintDataSet">
<PackingSlipPrintDataSet xmlns="http://www.epicor.com/Ice/300/Rpt/PackingSlipPrint/PackingSlipPrint">
<PackingSlipParam>
<PackNum>102973</PackNum>
<PrintingOptions>S</PrintingOptions>
<AssignLegalNumber>false</AssignLegalNumber>
<EnableAssignLegalNumber>false</EnableAssignLegalNumber>
<DCHdrList></DCHdrList>
<PackNumList>102996</PackNumList>
<StyleNumExt>2</StyleNumExt>
<EnableIncludePCID>false</EnableIncludePCID>
<IncludePCID>false</IncludePCID>
<DocCopyNum></DocCopyNum>
<DraftMode>false</DraftMode>
<DemandContractList></DemandContractList>
<IncludeInventoryAttributes>false</IncludeInventoryAttributes>
<SysRowID>00000000-0000-0000-0000-000000000000</SysRowID>
<AutoAction>SSRSPrint</AutoAction>
<PrinterName></PrinterName>
<AgentSchedNum>0</AgentSchedNum>
<AgentID>SystemTaskAgent</AgentID>
<AgentTaskNum>0</AgentTaskNum>
<RecurringTask>false</RecurringTask>
<RptPageSettings>Color=True,Landscape=False,AutoRotate=False,PaperSize=[Kind="Letter" PaperName="Letter" Height=1100 Width=850],PaperSource=[SourceName="Automatically Select" Kind="FormSource"],PrinterResolution=[]</RptPageSettings>
<RptPrinterSettings>PrinterName="PrinterWyomingShippingMgr (HP LaserJet MFP M426fdw)",Copies=2,Collate=True,Duplex=Simplex,FromPage=1,ToPage=0</RptPrinterSettings>
<RptVersion></RptVersion>
<ReportStyleNum>1001</ReportStyleNum>
<WorkstationID>hisname</WorkstationID>
<TaskNote></TaskNote>
<ArchiveCode>0</ArchiveCode>
<DateFormat>m/d/yyyy</DateFormat>
<NumericFormat>,.</NumericFormat>
<AgentCompareString></AgentCompareString>
<ProcessID></ProcessID>
<ProcessCompany></ProcessCompany>
<ProcessSystemCode></ProcessSystemCode>
<ProcessTaskNum>0</ProcessTaskNum>
<DecimalsGeneral>0</DecimalsGeneral>
<DecimalsCost>0</DecimalsCost>
<DecimalsPrice>0</DecimalsPrice>
<GlbDecimalsGeneral>0</GlbDecimalsGeneral>
<GlbDecimalsCost>0</GlbDecimalsCost>
<GlbDecimalsPrice>0</GlbDecimalsPrice>
<FaxSubject>test</FaxSubject>
<FaxTo></FaxTo>
<FaxNumber></FaxNumber>
<EMailTo>myemail@mycompany.com</EMailTo>
<EMailCC></EMailCC>
<EMailBCC></EMailBCC>
<EMailBody>test</EMailBody>
<AttachmentType>PDF</AttachmentType>
<ReportCurrencyCode>USD</ReportCurrencyCode>
<ReportCultureCode>en-US</ReportCultureCode>
<SSRSRenderFormat>PDF</SSRSRenderFormat>
<UIXml></UIXml>
<PrintReportParameters>false</PrintReportParameters>
<SSRSEnableRouting>false</SSRSEnableRouting>
<DesignMode>false</DesignMode>
<RowMod>A</RowMod>
</PackingSlipParam>
[/details]