ASP. NET reads Excel content more than 255 characters are truncated

Source: Internet
Author: User
Tags truncated

. csv type of cell cannot exceed 255, to be converted to XLS format

ASP. NET read Excel content more than 255 characters are truncated, this problem is very confusing, sometimes the cell is truncated, sometimes the C # operation is truncated when read, want to well import, also not easy ....

When the cell copy string or import, the string is truncated, pay attention to the new Excel file save type, try several related types to try;

The C # operation is truncated when read, and if the view cell string is right, look for the following question:

When reading data with ADO, for cells that are more than 255 characters long, the first 1-8 columns, and cells greater than 255 characters, must not be less than 255 characters or the system will not be recognized. In practice, cells that are more than 255 characters can be in any row, but only if you want to ensure that there are several columns in the 1-8 column that must also exceed 255 characters, then the remaining rows can be displayed.

means the first 1-8 rows/columns, to have cells that have more than 255 characters in the cell exist:

Original reproduced from: http://www.dyxue.com/tech/id2467.html

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.