Operating ASP program code for Excel (1/7)

Source: Internet
Author: User
Tags table name first row

<%
'***************************************************************************************

' Use instructions
' Dim A
' Set A=new createexcel
' a.savepath= ' x ' Save path
' A.sheetname= workbook name ' Multiple sheet a.sheetname=array (workbook name one, workbook name two)
' a.sheettitle= table name ' can be empty multiple worksheets a.sheetname=array ("table name one", "Table name two")
' A.data =d ' two-dimensional array ' multiple worksheet array (B,C) B and C as a two-dimensional array
' Dim rs
' Set Rs=server.createobject (' Adodb.recordset ')
' Rs.Open ' select ID, ClassID, classname from [class], Conn, 1, 1
' A.adddbdata RS, field name one, field name two, workbook name, table name, True ' true to get the name of a table field automatically
' A.adddata C, true, workbook name, table name ' C two-dimensional array true first row is header row
' A.addtdata E, ' Sheet1 ' generates C=array by template (Array ("Aa1", "content"), Array ("Aa2", "Content 2"))
' A.create ()
' A.usedtime generation time, number of milliseconds
' A.savepath save path
' Set a=nothing
' Set the operation permissions for the COM component. Type "DCOMCNFG" at the command line, then enter the COM component Configuration interface, select MicrosoftExcel and click the Properties button, select all three single options to customize, edit everyone to join all permissions

'****************************************************************************************

home 1 2 3 4 5 6 7 last
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.