C# 如何在一次调用中将SSR呈现为PDF和Excel?
据我所知,有了SSR,我们可以使用ReportingServiceExecutorWeb服务并从代码中动态生成报告。我们正在使用这样的代码来获取certina格式的返回报告,如PDF、ExcelC# 如何在一次调用中将SSR呈现为PDF和Excel?,c#,reporting-services,ssrs-2008-r2,ssrs-2012,C#,Reporting Services,Ssrs 2008 R2,Ssrs 2012,据我所知,有了SSR,我们可以使用ReportingServiceExecutorWeb服务并从代码中动态生成报告。我们正在使用这样的代码来获取certina格式的返回报告,如PDF、Excel ReportExecutionService rs = new ReportExecutionService(); byte[] result = rs.Render(fileFormat, devInfo, out extension, out encoding, out mimeType, out
ReportExecutionService rs = new ReportExecutionService();
byte[] result = rs.Render(fileFormat, devInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);
上面的代码调用SSRS引擎,执行报告,调用底层存储过程,并以给定的文件格式返回结果
如果我想同时生成Excel和PDF报告,我必须调用上述方法两次。这将进行2 DB的呼叫,这将非常耗时
我有没有办法一次就做到?我想得到一些结果,然后用它转换成PDF和Excel
宙斯我不相信那是可能的。我不相信那是可能的。