OleDbConnection
Very convenient because you can manipulate an Excel file as if it is a DBMS. However, OleDbConnection dosen’t support special behaviors like adding a color to a cell. MDAC(OleDbConnection needs it) also dosen’t support x64 or ‘ANY CPU’ platform.
Microsoft.Office.Interop.Excel
Office components should be installed. If your application use this, it should be built for x86 platform. Other platforms are not supported by Office components.
OpenXml SDK
Merits
-
supports special behaviors
-
supports x86, x64, and ‘ANY CPU’ platforms
Demerits
- Using OpenXml SDK is not easy because references and resources are rare. Sometimes XML manipulation is required.
- Currently, OpenXml SDK only supports Office 2007.
Useful Resources
How to create an Excel file
How to access records of an Excel file
Author Details
Kubernetes, DevSecOps, AWS, 클라우드 보안, 클라우드 비용관리, SaaS 의 활용과 내재화 등 소프트웨어 개발 전반에 도움이 필요하다면 도움을 요청하세요. 지인이라면 가볍게 도와드리겠습니다. 전문적인 도움이 필요하다면 저의 현업에 방해가 되지 않는 선에서 협의가능합니다.