Upgraded Aspose version from V 8.0 to V20.8.0
- FileFormatType.Excel2007Xlsx was not supported, is there any alternative method to use FileFormatType.Excel2007Xlsx?
Please find the sample code
public static bool IsAllowedFormat(Workbook wb)
{
var validFileFormats = new[]
{
FileFormatType.CSV,
FileFormatType.Excel2003XML,
FileFormatType.Excel2007Xlsx,
FileFormatType.Excel97To2003,
FileFormatType.Xlsx,
};
return validFileFormats.Contains(wb.FileFormat);
}