Export to Excel related issues

Source: Internet
Author: User

1. Missing driver or upgrade OLE DB driver issue: Install accessdatabaseengine_x64 or accessdatabaseengine modify Data link provider=microsoft.ace.oledb.12.0; Data source=; Extended properties= ' Excel 12.0; Hdr=yes; Imex=1 '

2. Iterate through the DataTable and modify the values in the corresponding columns to resolve the default export scientific count display

foreach (DataRow dri in dt. Rows)
{
StringBuilder sb = new StringBuilder ("=\");
SB=SB. Append (dri["customer number"]). Append ("\" ");
dri["customer number"] = SB;
}

3. Format the export time

CONVERT (varchar), Shijian,------------------20160601

Export to Excel related issues

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.