是否有任何开源库可以生成和编辑 .xls 和 .ppt 文件?
我的任务是从 ppt 文件中提取信息并与另一个 ppt 文件进行比较。我必须使用Windows平台,所以我使用了excel和powerpoint的COM对象。
在我的计算机中开发和测试代码后,当我将文件导出到另一台计算机时,它失败了。我开始在该文件中进行调试,令人惊讶的是,调试从头到尾都是成功的,但一旦单击可执行文件,它就会失败。
我现在完全感到沮丧,因为尽管将 excel dll 文件更新到这些计算机中(这将服务于 com 支持),但它不起作用。每台电脑都会给出不同的错误消息。我不想再使用 COM 对象了。太糟糕了。
任何人都可以建议我任何开源替代方案,让我可以从 Excel 和 Powerpoint 文件(2003 和 2007 格式)中读取和提取信息???
我的首选语言是 c# ....... .我有一个付费解决方案(aspose),但我不想这样做。
任何帮助将不胜感激。只是建议我如何处理 Office 文件,假设我的计算机上没有安装 MS Office。
My task is to extract information from ppt file and compare with another ppt file. I have to use windows platform so i used excel and powerpoint's COM object.
After developing and testing the code in my computer when i exported the file into another computer it just failed. I started to debug in that file, and surprisingly debug was successful from first to last but as soon as click on the executable it fails.
I am totally *ucked up now cause inspite of updating excel dll files into those computers (which will serve the com support) it's not working. In every pc it gives different error message. I don't wanna work COM object anymore. It *ucks.
Can anyone suggest me any open source alternative in which i can read and extract information from Excel and Powerpoint files (both 2003 and 2007 format) ???
My preferred language is c# ........I got an paid solution (aspose) but i don't wanna go for that.
Any help will be appreciated. Just suggest me how can i deal with office files assuming ms office is not installed in my computer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
NPOI 适用于 Excel;我只知道使用内置的 MS 对象库来处理 PPT 文件。
NPOI works well for Excel; I only know to use the built in, MS object library for PPT files.