将Excel XML-Spreadsheet转换为xlsx

我有一个XML-Excel文件(SpreadsheetML格式):

<?xml version="1.0" encoding="utf-8"?> <?mso-application progid="Excel.Sheet"?> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas- microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"> <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> <Company>My Company</Company> </DocumentProperties> <Styles> <Style ss:ID="Default" ss:Name="Normal"> <Alignment ss:Vertical="Bottom"/> <Borders/> <Font/> <Interior/> <NumberFormat/> <Protection/> </Style> <Style ss:ID="stTxt"> <Font ss:FontName="Arial" ss:Size="8"/> <Alignment ss:Horizontal="Left"/> <NumberFormat ss:Format="@"/> </Style> <Style ss:ID="stTopHeadline"> <Font ss:FontName="Arial" ss:Size="8" /> <Alignment ss:Horizontal="Left"/> <NumberFormat ss:Format="@"/> </Style> ... 

现在我需要用C#将这些文件转换成XLSX文件。 Open Xml或其他库是否可以将其转换为Excel 2010 XLSX格式?

你得到的是所谓的平面OPC格式。 这里是一篇关于将其转换为常规Open XML格式的文章。