When I attempt to test this function using a Data Directive, I get the error:
Program Ice.Services.Lib.RunTask raised an unexpected exception with the following message: RunTask: No printer found in the printer settings. Printer is optional only if Email or Fax settings are present.
Stack Trace:
at Ice.Core.SsrsReporting.ReportProcessorBase1.RenderReportForPrintFaxOrEmailReport(RenderedSsrsReport renderedReport, Boolean serverSidePrint, Boolean ignorePageSettings, Boolean ignoreMargins) in c:\_Releases\ICE\3.1.400.38\Source\Server\Internal\Lib\TaskLib\SsrsReporting\ReportProcessorBase.cs:line 408 at Ice.Core.SsrsReporting.ReportProcessorBase1.ProcessReportPart(String reportLocation) in c:_Releases\ICE\3.1.400.38\Source\Server\Internal\Lib\TaskLib\SsrsReporting\ReportProcessorBase.cs:line 161
When I originally asked, we did not have the Advanced Printing (the one that provides Break/Routing). Since purcha$ing the module and using it like you show above, solved the attachment name problem.
But what I’d really like is to be able to create the body in HTML so the emails look nicer. I currently build the email from scratch (all inside an Execute Custome Code block), but that doesn’t let me attach the actual PDF that is generated.