如何使用.NET 3.5打开Excel 2003?

发布于 2024-08-27 09:58:03 字数 66 浏览 3 评论 0原文

我想从 .NET 3.5 应用程序打开 EXCEL 2003 并操作 Excel 工作表中的每个单元格。有人这样做吗?

I'd like to open EXCEL 2003 from a .NET 3.5 application and manipulate each cell in the Excel sheet. Any one does that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

追星践月 2024-09-03 09:58:04

有多种方法可以做到这一点。

您可以使用 COM Interop 来控制 Excel 以及打开和操作电子表格。应尽可能避免这种情况。

您可以使用 OleDb 将 Excel 电子表格作为 SQL 数据库打开。这将是快速和高效的,但对您来说可能不够强大。 示例

您可以从 Aspose 或 SyncFusion 等供应商处购买第三方 Excel 组件。这需要花钱。

There are a number of ways to do this.

You can use COM Interop to control Excel and open and manipulate a spreadsheet. This should be avoided where possible.

You can use OleDb to open an Excel spreadsheet as an SQL database. This will be fast and efficient, but might not be powerful enough for you. Example

You can buy a third-party Excel component, from vendors like Aspose or SyncFusion. This will cost money.

梦中的蝴蝶 2024-09-03 09:58:03

不确定你所说的“操纵”是什么意思。如果您想将数据传输到单元格,这篇 Microsoft 文章应该可以帮助您:

http://support。微软.com/kb/306023

Not sure what you mean by "manipulate". If you want to transfer data to the cells, this Microsoft article should get you going:

http://support.microsoft.com/kb/306023

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文