Is there any library to access OLE Structured Storage from C#? [closed]

吃可爱长大的小学妹 提交于 2019-11-28 21:39:42

You can use my open source (MPL) library OpenMCDF for a 100% .net implementation of COM structured storage. A sample COM structured storage file viewer is also available as a usage sample of the library.

An excellent article describes the usage.

COM structured storage from .NET

OleDbConnection can handle structured storage as long as the appropriate OLE DB driver is installed on the machine your app is running on.

Excel:

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\myFolder\myExcel2007file.xlsx;
    Extended Properties="Excel 12.0 Xml;HDR=YES";

Text:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\txtFilesFolder\;
    Extended Properties="text;HDR=Yes;FMT=Delimited";

ConnectionStrings.com has a whole host of other Data Sources that you can access via OLE with the built-in libraries.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!