From 5d9325a1ecdeebced23acaca364ad3b2631a89f8 Mon Sep 17 00:00:00 2001 From: DIR-twhitfield <123977205+DIR-twhitfield@users.noreply.github.com> Date: Tue, 12 Sep 2023 10:20:55 -0700 Subject: [PATCH] Added functionality for XLSX. Code from rems94400's update request #37. --- Source/CrystalReportsNinja/ReportProcessor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/CrystalReportsNinja/ReportProcessor.cs b/Source/CrystalReportsNinja/ReportProcessor.cs index fa96d58..d8607de 100644 --- a/Source/CrystalReportsNinja/ReportProcessor.cs +++ b/Source/CrystalReportsNinja/ReportProcessor.cs @@ -221,6 +221,8 @@ private void ApplyReportOutput() _reportDoc.ExportOptions.ExportFormatType = ExportFormatType.WordForWindows; else if (_outputFormat.ToUpper() == "XLS") _reportDoc.ExportOptions.ExportFormatType = ExportFormatType.Excel; + else if (_outputFormat.ToUpper() == "XLSX") + _reportDoc.ExportOptions.ExportFormatType = ExportFormatType.ExcelWorkbook; else if (_outputFormat.ToUpper() == "XLSDATA") _reportDoc.ExportOptions.ExportFormatType = ExportFormatType.ExcelRecord; else if (_outputFormat.ToUpper() == "ERTF")