Best Excel import practices (1)

Source: Internet
Author: User

Related Links
Best Excel import practices (1)
Best Excel import practices (2)
Best Excel import practices (III)
Best Excel import practices (4)
Best Excel import practices (5)

In the application system, to facilitate batch data entry or data transfer, you may need to import the data in Excel to the existing system.

. To import an Excel file, you must first read the Excel file. The following methods are commonly used:

1. Use excel as a data source to directly connect to and read Excel
Advantages:
1. Easy to implement
Disadvantages:
1. The import template can only be manually completed. If you want to process multiple languages or the number of columns is not fixed, the number of templates will become very large and difficult to maintain.
2. It is difficult to process non-standard external tables (such as row and column merging) in Excel.

2. Use office PIA to read Excel
Advantages:
1. Easy to implement
2. Flexible Generation of introduced template files
Disadvantages:
1. Excel must be installed on the server
2. An Excel process is enabled on the server every time you use it. The process is killed.

3. Use openxml to read Excel
Advantages:
1. overcome the disadvantages of the above two methods
Disadvantages:
1. High development complexity
2. excel2003 and earlier versions are not supported

4. Read excel through a third-party Excel read/write component(For example, npoi is called poi in Java. These two are the best Excel read/write components on the two platforms I currently see)
Advantages:
1. There are no restrictions on the server (of course, it must be a. NET environment)
2. Simple implementation
3. Flexible Generation of introduced template files
Disadvantages:
1. The current version 1.2 only supports Excel 2003 and earlier versions, but does not support Excel 2007.

This import scheme reads excel in the last method.

 

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.