From 328e603c6aaba01053e022a4871a1edb9e5ec492 Mon Sep 17 00:00:00 2001 From: rems94400 <47176698+rems94400@users.noreply.github.com> Date: Wed, 30 Jan 2019 18:53:05 +0800 Subject: [PATCH] Update ReportProcessor.cs Add the capability to export crystal reports to xlsx format --- Source/CrystalReportsNinja/ReportProcessor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/CrystalReportsNinja/ReportProcessor.cs b/Source/CrystalReportsNinja/ReportProcessor.cs index fa96d58..65394c6 100644 --- a/Source/CrystalReportsNinja/ReportProcessor.cs +++ b/Source/CrystalReportsNinja/ReportProcessor.cs @@ -219,6 +219,8 @@ private void ApplyReportOutput() _reportDoc.ExportOptions.ExportFormatType = ExportFormatType.CrystalReport; else if (_outputFormat.ToUpper() == "DOC") _reportDoc.ExportOptions.ExportFormatType = ExportFormatType.WordForWindows; + else if (_outputFormat.ToUpper() == "XLSX") + _reportDoc.ExportOptions.ExportFormatType = ExportFormatType.ExcelWorkbook; else if (_outputFormat.ToUpper() == "XLS") _reportDoc.ExportOptions.ExportFormatType = ExportFormatType.Excel; else if (_outputFormat.ToUpper() == "XLSDATA")