ReportService.PrintReport method fails

Using ReportService.PrintReport method in a workflow fails.

Origam.OrigamException: Specified method is not supported.
 ---> System.NotSupportedException: Specified method is not supported.
   at Origam.BI.SSRS.SSRSService.PrintReport(Guid reportId, IXmlContainer data, String printerName, Int32 copies, Hashtable parameters) in D:\a\1\s\backend\Origam.BI.SSRS\SSRSService.cs:line 154
   at Origam.Workflow.ReportServiceAgent.PrintReport(Guid reportId, IXmlContainer data, String printerName, Int32 copies, Hashtable parameters) in D:\a\1\s\backend\Origam.Workflow\Service Agents\ReportServiceAgent.cs:line 48
   at Origam.Workflow.ReportServiceAgent.Run() in D:\a\1\s\backend\Origam.Workflow\Service Agents\ReportServiceAgent.cs:line 129
   at Origam.Workflow.Tasks.ServiceMethodCallEngineTask.OnExecute() in D:\a\1\s\backend\Origam.Workflow\Tasks\ServiceMethodCallEngineTask.cs:line 221
   at Origam.Workflow.ProfilingTools.<>c__DisplayClass4_0.<ExecuteAndLogDuration>g__FuncToExecute|0() in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 68
   at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Func`1 funcToExecute, String logEntryType, String path, String id, Func`1 logOnlyIf) in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 108
   at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Action action, String logEntryType, String path, String id, Func`1 logOnlyIf) in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 72
   at Origam.Workflow.Tasks.AbstractWorkflowEngineTask.MeasuredExecution() in D:\a\1\s\backend\Origam.Workflow\Tasks\AbstractWorkflowEngineTask.cs:line 105
   at Origam.Workflow.Tasks.ServiceMethodCallEngineTask.Execute() in D:\a\1\s\backend\Origam.Workflow\Tasks\ServiceMethodCallEngineTask.cs:line 72

Viz druhá odpověď.

Since the printing of SSRS reports is not in memory process, but file needs to be saved on the filesystem,
PrintService.PrintPDF can be used instead.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.