以编程方式将 XLS 转换为 XLSB?
我有一位客户需要将 XLS 文件转换为 XLSB。有没有人以编程方式完成此操作(有或没有附加组件 - 没关系 - 只需要能够自动化它)?我正在寻找一种自动化的方法。
顺便说一句,客户之所以问这个问题,是因为他们使用 Sharepoint,而且似乎它有一种比 XLS 更快、更容易分析 XLSB 文件的方法?我正在努力提高我的 Sharepoint 知识,但与此同时,我正在尝试找到此 XLSB 问题的答案。
I have a customer that needs to convert XLS files to XLSB. Has anyone done this programmatically, (with or without an add-on --- doesn't matter --- just need to be able to automate it)? I'm looking for a way to automate this.
As a side note, the customer is asking about this because they use Sharepoint, and it seems it has a way to analyze XLSB files quicker and easier than XLS? I'm working to improve my Sharepoint knowledge, but in the meantime, I'm trying to find an answer to this XLSB issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好吧,然后有一个简短的格式版本:
您将需要一个具有 .NET 编程支持的 Excel 安装(在安装程序中默认禁用!)并从您的项目中引用 Excel 的 MS Office PIA 程序集:
参考资料:
工作簿.打开,workbook.SaveAs 、XlFileFormat.xlExcel12
Well, then there is a short format verison:
You will need a Excel installation with .NET programming support (disabled by default in installer!) and reference MS Office PIA assembly for Excel from your project:
References:
Workbooks.Open, workbook.SaveAs, XlFileFormat.xlExcel12
我编写此 powershell 代码来递归地转换许多文件夹中的许多 *.xls 文件。
该脚本提示选择一个文件夹,转换所有文件并删除原始文件(移至垃圾箱)
在 powershell 控制台中显示每个文件名。
I write this powershell code to convert many *.xls files in many folder recursively.
this script promte to choose a folder , convert all file and delete original (move to trash)
display each filename in powershell console.
此可以从命令行使用。
This can be used from the command line.