使用Microsoft Office Compitablity Pack的excelcnv将xlsx转换为xls [英] Converting xlsx to xls using Microsoft Office Compitablity Pack's excelcnv

查看:925
本文介绍了使用Microsoft Office Compitablity Pack的excelcnv将xlsx转换为xls的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

互联网说您可以使用Microsoft Office Compitablity将xlsx文件转换为xls文件,如下所示:

C:\Program Files\Microsoft Office\Office14\\ \\excelcnv-nmeather D:\test\\\
ew.xlsx D:\test\old.xls


但是,这可以向后 - 它转换为xls文件到xlsx文件。有没有人知道 excelcnv 将xlsx转换为xls?

解决方案

对于我来说,使用Office 2003的兼容性(转换)包,只需切换您引用作品的示例中的参数的位置;例如如果这也适用于〜\Office14(我假设并希望它),请以这种方式更改命令:

  C:\Program Files\Microsoft Office\Office14\excelcnv-nome -oice D:\test\old.xls D:\test\\\
ew.xlsx

在我的情况下,特定的命令让它工作,我发现 yonder (并且简单地颠倒了这样的参数),是这样的:

 C:\程序文件(x86)\Microsoft Office\Office12\excelcnv.exe发票C:\\ \\ scripts\test1.xlsC:\scripts\test1.xlsx


The internet says that you can convert xlsx files to xls files using Microsoft Office Compitablity like this:
"C:\Program Files\Microsoft Office\Office14\excelcnv" -nme -oice D:\test\new.xlsx D:\test\old.xls
However, this works backwards - it converts xls files to xlsx files. Does anyone know the excelcnv switches to convert xlsx to xls?

解决方案

For me, using the compatibility (conversion) pack for Office 2003, simply switching the places of the parameters in the example you cite works; e.g. if this also works for ~\Office14 (which I assume and hope it does), change the command this way:

"C:\Program Files\Microsoft Office\Office14\excelcnv" -nme -oice D:\test\old.xls D:\test\new.xlsx

In my case, the particular command that gets it to work, which I found yonder (and simply reversed the parameters like so), is this:

"C:\Program Files (x86)\Microsoft Office\Office12\excelcnv.exe" -oice "C:\scripts\test1.xls" "C:\scripts\test1.xlsx"

这篇关于使用Microsoft Office Compitablity Pack的excelcnv将xlsx转换为xls的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆