导入导出Excel文件 [英] Import-Export excel file

查看:75
本文介绍了导入导出Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在vb6中导入excel文件并在datagrid中显示并将该文件导出到oracle数据库?给我这个问题的演示程序.

How to import excel file in vb6 and display in datagrid and also export that file to oracle database? give me demo program for this question.

推荐答案

您可以使用两种方法:
1)使用Excel对象(早期或晚期绑定)打开Excel工作簿/工作表,读取数据并在相关列中进行更新
2)使用ADO打开与所需Excel工作表的连接作为记录集,并与其他任何数据源一样进行操作.

HTH
There are two methods you can use:
1) Use an Excel object (either early or late bind) to open the Excel workbook / sheets, read data and update in relevant columns
2) Use ADO to open a connection to the required Excel sheet as a record set and proceed as with any other data source.

HTH


这篇关于导入导出Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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