您的位置:程序门 -> .net技术 -> vb.net



vb.net 怎样导入EXECl表!!!


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


vb.net 怎样导入EXECl表!!![已结贴,结贴人:shadamaocat]
发表于:2007-07-04 16:07:13 楼主
怎样将数据库中的数据导入到EXECl中
我的程序中有datagrid   我想将datagrid中的数据导入到EXECl中
这该怎么编!!!!!!!

发表于:2007-07-04 21:33:341楼 得分:0
有人会将数据导入EXECl表中吗???
发表于:2007-07-05 00:41:492楼 得分:20
response.clear()
                        response.buffer   =   true
                        response.charset   =   "gb2312 "
                        response.appendheader( "content-disposition ",   "attachment;filename=filename.xls ")
                        response.contentencoding   =   system.text.encoding.getencoding( "gb2312 ")   '设置输出流为简体中文
                        response.contenttype   =   "application/ms-excel "
                        dim   mycitrad   as   system.globalization.cultureinfo   =   new   system.globalization.cultureinfo( "zh-cn ",   true)
                        dim   ostringwriter   as   system.io.stringwriter   =   new   system.io.stringwriter(mycitrad)
                        dim   ohtmltextwriter   as   system.web.ui.htmltextwriter   =   new   system.web.ui.htmltextwriter(ostringwriter)
                        datagrid1.rendercontrol(ohtmltextwriter)
                        response.write(ostringwriter.tostring())
                        response.end()
发表于:2007-07-05 17:11:463楼 得分:0
我也初学的,貌似要先在方案资源管理器里面添加一个EXECl的com引用
发表于:2007-07-05 17:21:444楼 得分:0
excel:
http://blog.csdn.net/chengking/category/292667.aspx


快速检索

最新资讯
热门点击