🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.visual-basic
Article #349

��ȣ���ν���һ�����Լ���ʹ����Ϊ�洢�ļ���excel�ļ���

#349
From: Jackie
Date: Sat, 02 Dec 2006 03:36
16 lines
1946 bytes
��������������˵�Ĵ���class,������form1���洴�����object�ܳ����⡣
������ֱ����form1����İ�ť�������������Щ����
Dim xlApp = CType(CreateObject("Excel.Application"), _
               Microsoft.Office.Interop.Excel.Application)
        Dim xlBook = CType(xlApp.Workbooks.Add, _
                    Microsoft.Office.Interop.Excel.Workbook)
        Dim xlSheet = CType(xlBook.Worksheets(1), _
                    Microsoft.Office.Interop.Excel.Worksheet)

        xlSheet.Application.Visible = True
        xlSheet.SaveAs("G:\SlideView\results.xls")
�������뻹�Dz��ԣ�����Ļ���û�ε����Ǹ���ť�����ᴴ��һ���µ�excel�ļ���Ȼ�󸲸ǵ���ԭ������ݡ������봦��һЩ������Ҫ������һЩ�����������excel����ȥ����ôŪ�أ�
--
��һ��������������

�� ��Դ:��ˮľ���� http://newsmth.net��[FROM: 133.6.203.*]
Technical Details
Message-ID: <4RMNUU$44f@newsmth.net>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsgate.cuhk.edu.hk!news.szu.edu.cn!news.bbh.net.cn!news.newsmth.net!NEWSMTH

Show Full Headers
Complete Article Headers
X-Google-Thread: 109fdd,fa329e7886e864cb,start
X-Google-Attributes: gid109fdd,public
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsgate.cuhk.edu.hk!news.szu.edu.cn!news.bbh.net.cn!news.newsmth.net!NEWSMTH
From: Jackie2003@newsmth.net-SPAM.no (Jackie)
Newsgroups: cn.bbs.comp.lang.visual-basic
Subject: ��ȣ���ν���һ�����Լ���ʹ����Ϊ�洢�ļ���excel�ļ���
Date: 02 Dec 2006 03:36:30 GMT
Organization: ˮľ����
Message-ID: <4RMNUU$44f@newsmth.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: VisualBasic/d/M.1165030590.S0