📌  相关文章
📜  SSRS 导出到 xlsx 已损坏 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:27.126000             🧑  作者: Mango

代码示例1
/* No need to put the .rdl ext after the report name */
execInfo = reportService.LoadReport("/PathToRDL/RDL_Report", historyID);
/* Ensure you have all the parameters set required by the report */
reportService.SetExecutionParameters(Parameters, "en-us");
/* EXCELOPENXML will produce a XLSX */
var auditReport = reportService.Render("EXCELOPENXML", devInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);