[VB.NET]VB.NET创建外部excel对象

来源:互联网 发布:网络机顶盒推荐 编辑:程序博客网 时间:2021/11/29 08:10
VB.NET源码-156个实用实例哦……<script type="text/javascript"><!--google_ad_client = "pub-8333940862668978";/* 728x90, 创建于 08-11-30 */google_ad_slot = "4485230109";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
VB.NET创建外部excel对象
请教下我定义一个excel的application对象的应用
dim x1App as Excel.application就出错了
是不是要引用什么类啊
__________________________________________________________________________
up
__________________________________________________________________________
Imports Excel.Constants
Imports Excel.XlBordersIndex
__________________________________________________________________________
系统设定 追加 --〉com --> Microsoft Excel 11.0 Object Library 双击
确定
然后在代码的最上面加
Imports Excel.Constants
Imports Excel.XlBordersIndex
__________________________________________________________________________
Interop.Excel.dll
Interop.Microsoft.Office.Core.dll
Interop.Office.dll
Interop.VBIDE.dll
加载这四个文件就可以了
__________________________________________________________________________
要引用类库里的 Excel.Constants、 Excel.XlBordersIndex类
__________________________________________________________________________
只有Imports Excel.Form1
没有
Imports Excel.Constants
Imports Excel.XlBordersIndex
我在引用中也引用了Microsoft Excel 11.0 Object Library
怎回事
__________________________________________________________________________