在没有安装office的其他系统中使用ms office com对象
我编写了一个用于读取 Excel 文件的应用程序。我必须添加一些对 Microsoft Office Com 对象的引用。 它在我的系统中运行良好,但是当我想在未安装 MS Office 的其他系统中使用它时, 我遇到了一个问题。我还携带了已添加到项目中的 dll 文件。我应该怎么办 ?
i wrote a app for reading excel files.i had to add some references to Microsoft office Com Objects.
it worked good in my system,but when i wanted to use it in other system in which does`t had ms office installed ,
i encounter a problem.i also carried dll files that has been added to project . what should i do ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为了使用相关的对象库,您必须确保客户端计算机上安装了 Office(在您的情况下为 Excel)。如果您可以选择,我建议您还是切换到 Open Office XML 格式。我最近在使用 MS Word 时遇到了类似的问题,并且切换到新格式的工作已经确定。支付的.
检查MS Open XML SDK
Performace++ 并且不依赖于安装的 Office...
In order to use the relevant object libraries you'll have to make sure that Office (Excel in your case) is installed on your client machine. If you have the option I'd suggest to switch to the Open Office XML format anyways. I recently had a similar problem with MS Word and the +work to switch to the new format has def. payed of.
Check MS Open XML SDK
Performace++ and not depending on Office installed...
Office COM 对象依赖于 Office。您应该安排在其他系统上安装 Office,或者使用不需要安装 Excel 的组件来读取 Excel 文件,例如 ODBC Excel 驱动程序或第三方 Excel 文件阅读器。
The Office COM objects depend on Office. You should either arrange for Office to be installed on the other systems, or use a component for reading Excel files that doesn't need Excel installed, such as the ODBC Excel driver or a third-party Excel file reader.