ado|excel| data
ASP query data for the basic operations of Excel
EXECL97/2000/XP is a member of MS Office office software. In enterprise-class applications, we often need to operate on execl, such as reading execl inside the data, inserting data into the execl.
First, the operation Execl should pay attention to matters:
1, server-side Office configuration
For example, for Ms Windows2000+iis, there is no special requirement for a version of Execl,office that has a member of MS Office installed on the server side.
2, server-side Distributed COM configuration
Execute the "DCOMCNFG" command, select the Microsoft execl application-> Properties-> security-> Three options on the Application page, and choose "Use custom Access" to add "everyone" permission.
Second, first of all, will use ASP to read EXECL data (do not create DSN):
We can think of the whole. xsl file as a database, Sheet1, Sheet2 and so on, respectively, as a separate table, the A1, B1, C1 、... N1 as a table field.
--Establish a Connection object instance Execlconn
Set execlconn=server.createobject ("ADODB. Connection ")
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.