Can I find some open source library for accessing (reading only is ok) OLE Storage like doc or xls files in c#?
Asked
Active
Viewed 1.2k times
3 Answers
20
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.

ironfede
- 221
- 2
- 5
-
-
-
+1 Nice work! :) Some improvement points: the CHM file does not open on my machine and it might be good to add some basic example code on how to use it here. :) – user2173353 Feb 25 '16 at 10:40
-
Any chance there is an implementation for parsing SummaryInformation streams? : http://sedna-soft.de/articles/summary-information-stream/. That would be really cool. :) – user2173353 Feb 25 '16 at 12:30
2
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.

Justin Niessner
- 242,243
- 40
- 408
- 536
-
-
I have a binary structured text file, can I use OleDbConnection to read this file?, – fhnaseer May 28 '13 at 12:56