spire.xls for .net从11.9.3版本开始支持将excel转为uos格式。只需通过workbook.loadfromfile(string filename)方法加载excel源文档后,再调用方法workbook.savetofile(string filename, fileformat fileformat)转换为目标文件格式即可。
c#
using spire.xls;
namespace exceltouos
{
class program
{
static void main(string[] args)
{
workbook workbook = new workbook();
workbook.loadfromfile("test.xlsx");
workbook.savetofile("touos", fileformat.uos);
}
}
}
vb.net
imports spire.xls
namespace exceltouos
class program
private shared sub main(args as string())
dim workbook as new workbook()
workbook.loadfromfile("test.xlsx")
workbook.savetofile("touos", fileformat.uos)
end sub
end class
end namespace