C # use Npoi to read and write the 2007 version of Excel's Detour

Source: Internet
Author: User

C # uses Npoi to read and write classes online a lot, not repeat here.

I quote the Dll:npoi.dll,npoi.ooxml.dll,npoi.openxml4net.dll,

The same code that operates version 2003 of Excel does not have a problem, when you operate version 2007 of Excel, there is an inexplicable problem, and the catch is not the exception information.

WORKAROUND: You need to refer to ICSharpCode.SharpZipLib.dll.

So there are four DLLs that need to be referenced: Npoi.dll,npoi.ooxml.dll,npoi.openxml4net.dll,icsharpcode.sharpziplib.dll (this DLL is required for version office2007).

C # use Npoi to read and write the 2007 version of Excel's Detour

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.