Generate a webpage to embed the database query information into an EXCEL table and export it to an EXCEL file.

Source: Internet
Author: User
Tags xmlns
I read many EXCEL posts in the essence area. It seems that no one has written such an operation method. I will write what I have done for your reference.
1. Create a new webpage in FrongPage and insert an EXCEL component (insert-WEB component-EXCEL Workbook) into the webpage ), then, input the data format you want to output to the embedded EXCEL table, right-click the component and choose Properties to define the definition items of each part of the component, and check the source code, obtain the source code of the embedded component.
2. Create an ASP web page in the VID, copy the source code in the previous step, and add the cyclic fetch code for the data column. As follows:
<Object classid = "clsid: 0002E510-0000-0000-C000-000000000046" id = "Spreadsheet1" codebase = "msowc. cab" width = "599" height = "490">
<Param name = "HTMLURL" value>
<Param name = "HTMLData" value = "& lt; html xmlns: x = & quot; urn: schemas-microsoft-com: office: excel & quot;
Xmlns = & quot; http://www.w3.org/TR/REC-html40&quot;&gt;
& Lt; head & gt;
& Lt; style type = & quot; text/css & quot; & gt;
& Lt ;! -- Tr
{Mso-height-source: userset ;}
Td
{White-space: nowrap ;}
. Wc80A6909
{White-space: nowrap;
Font-family:;
Mso-number-format: General;
Font-size: auto;
Font-weight: auto;
Font-style: auto;
Text-decoration: auto;
Mso-background-source: auto;
Mso-pattern: auto;
Mso-color-source: auto;
Text-align: general;
Vertical-align: bottom;
Border-top: none;
Border-left: none;
Border-right: none;
Border-bottom: none;
Mso-protection: locked ;}
. Wc01F2F7A
{White-space: nowrap;
Font-family:;

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.