创建应用程序以从Excel工作表中提取数据 [英] Create application to extract data from excel sheet

查看:73
本文介绍了创建应用程序以从Excel工作表中提取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张excel表,有几行。每一行都是一个订单。例如:


1纸10

2铅笔20

等...


当excel表填写完毕后,我希望用户按下一个按钮,然后

然后提取订单行中的数据并将其放在一个单独的文件中。

这个单独的文件和原始excel表应放在temp

目录中,然后一个executeble将开始导入另一个

应用程序。


我的问题是:


我应该创建基于Visual Studio Tools for Office 2005的解决方案还是

正在创建一个Add-为了excel最好的方式去?

I have an excel sheet that has several lines. Each line is an order. Example:

1 Paper 10
2 Pencils 20
etc...

When the excel sheet is filled out I want the user to press a button and
then the data from orderlines is extracted and placed in a seperate file.
This seperate file and the original excel sheet should be placed in a temp
dir and then an executeble is going to be started to import both into another
application.

My question is:

Should I create a solution based on Visual Studio Tools for Office 2005 or
is creating an Add-In for excel the best way to go?

推荐答案

嗨菲利普,


我们可以使用ado。 net从excel检索数据作为数据源。

316934如何使用ADO.NET在Excel中检索和修改记录

工作簿使用Visual Basic .NET
http://support.microsoft.com/default...b;EN-US;316934

祝你好运,


Peter Huang

微软在线合作伙伴支持


安全! - www.microsoft.com/security

此帖子原样是按原样提供的。没有保证,也没有授予任何权利。

Hi Philip,

WE can use ado.net to retrieve the data from excel as a datasource.
316934 How To Use ADO.NET to Retrieve and Modify Records in an Excel
Workbook With Visual Basic .NET
http://support.microsoft.com/default...b;EN-US;316934
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


感谢您的快速回复。


知识库文章你提到的是非常有帮助的。不过这是一个windows

表单应用程序。我希望用户使用Excel中的功能。


最好的方法是什么?用于excel或Visual Studio工具的加载项

Office 2005?


"" Peter Huang" [MSFT] QUOT;写道:
Thank you for your quick response.

The KB article you referred to is very helpful. However this is a windows
forms application. I want the user to use the functionality from within Excel.

What is the best way to go? Add-In for excel or Visual Studio Tools for
Office 2005?

""Peter Huang" [MSFT]" wrote:
嗨Philip,

我们可以使用ado.net从excel中检索数据作为数据源。
316934如何使用ADO .NET使用Visual Basic .NET检索和修改Excel
工作簿中的记录
http://support.microsoft.com/default...b;EN-US;316934

祝你好运,

Peter Huang
微软在线合作伙伴支持

获得安全! - www.microsoft.com/security
此帖子提供按原样没有保证,也没有授予任何权利。
Hi Philip,

WE can use ado.net to retrieve the data from excel as a datasource.
316934 How To Use ADO.NET to Retrieve and Modify Records in an Excel
Workbook With Visual Basic .NET
http://support.microsoft.com/default...b;EN-US;316934
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.



使用Microsoft Jet OLEDB驱动程序。目前推荐的

的方法是使用Microsoft Excel驱动程序吗?

That uses the Microsoft Jet OLEDB driver. Isn''t the current recommended
way to do it is with the Microsoft Excel Driver?


这篇关于创建应用程序以从Excel工作表中提取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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