有没有办法使用 Softartisans ExcelWriter .NET 库在新的 Excel 2007/2010/2013 ( .xlsx) 文件格式和旧的 2007 年前 ( .xls) 格式之间进行转换。
这段代码:
ExcelApplication application = new ExcelApplication();
Workbook workbook = application.Open("NewFormatFile.xlsx");
application.Save(workbook, "OldFormatFile.xls");
给出以下错误:
This workbook is a workbook without macros and must be saved with the .xlsx extension, but filename was OldFormatFile.xls