C#如何关闭使用devexpress导出到xls的加密选项

C#如何关闭使用devexpress导出到xls的加密选项,c#,devexpress,export-to-excel,C#,Devexpress,Export To Excel,正如您从标题中看到的,我想关闭加密属性,但我找不到如何做到这一点。 我浏览了EncryptionOptions属性,但找不到任何内容。这是我拥有的: DevExpress.XtraPrinting.XlsExportOptions exOptions = new DevExpress.XtraPrinting.XlsExportOptions(); exOptions.TextExportMode = DevExpress.XtraPrinting.TextExportMode.Text; gr

正如您从标题中看到的,我想关闭加密属性,但我找不到如何做到这一点。 我浏览了EncryptionOptions属性,但找不到任何内容。这是我拥有的:

DevExpress.XtraPrinting.XlsExportOptions exOptions = new DevExpress.XtraPrinting.XlsExportOptions();
exOptions.TextExportMode = DevExpress.XtraPrinting.TextExportMode.Text;
grcToExcelManuel.ExportToXls(FileName,exOptions);

您是否尝试过官方文档中的方法:若要应用加密,必须指定密码(默认空字符串不能用于文件加密)。所以空密码意味着没有加密