473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

OLE Structured Storage files

Are there any plans to incorporate a native C# facility to deal with the OLE
Structured Storage concept? It's clumsy at best to have to construct a C++
interface to the .doc files (or any such files by any suffix), when
Microsoft uses the concept in most, if not all, of their other products.
"Just how hard could it be?" he asks, knowing that 'hard' is a relative
concept.

--
David Groves
Thermo Finnigan--AID
da**********@thermo.com
512-251-1400
Nov 15 '05 #1
4 7297
Hi David,

I would also like to see such a facility in the next version of the
framework, even if I realize Microsoft probably plans to move away from the
OLE technology in the future and replace it with XML/binary serialization.

So far, have you tried searching the Web for a ready-made wrapper? I believe
there should be something like that, and it might be even free - there are
many interesting open-source .NET projects out there.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"David Groves" <da**********@thermo.com> wrote in message
news:ep**************@TK2MSFTNGP11.phx.gbl...
Are there any plans to incorporate a native C# facility to deal with the OLE Structured Storage concept? It's clumsy at best to have to construct a C++ interface to the .doc files (or any such files by any suffix), when
Microsoft uses the concept in most, if not all, of their other products.
"Just how hard could it be?" he asks, knowing that 'hard' is a relative
concept.

--
David Groves
Thermo Finnigan--AID
da**********@thermo.com
512-251-1400


Nov 15 '05 #2
> "Just how hard could it be?" he asks, knowing that 'hard' is a relative
concept.


Not hard at all. On my third day having having installed a beta of Visual
Studio.NET I had something that pretty much worked. Basic COM interop. I
only implemented the read bits of the interfaces (no update), since that was
all I needed but it was only a matter of patience.
Since then I lost the code and everything, but hope is not lost. A while ago
I found this: http://www.mvps.org/emorcillo/ Follow the links for
Source Code>.NET
and you'll find source code to handle structured storage in the .NET world.
The source code is in VB.NET but the assembly works in any language, of
course, and if you really want C# you can always hand-translate it (it
shouldn't take more than a couple of hours). Good luck!
--
WildHeart'2k3
Nov 15 '05 #3
Thank you both for your input. I see that I didn't make myself clear: I do
have a solution, and it is 'basic COM interop'-based, but my quest was for a
'pure' C# solution. Even if Microsoft is planning a move away from the OLE
Structured Storage methodology, there's a huge legacy presence of the
current usage, and it doesn't seem likely that everyone will drop the format
immediately upon hearing that there's an XML alternative. I am developing a
solution that uses both the OSS structure and XML, so that we can move at a
comfortable pace toward XML and away from OSS, but I'm still frustrated that
I have to depend on the hand-waving that the COM approach seems to require.

Again, thanks to both of you, Dimitriy and WildHeart, for your very helpful
replies.
"David Groves" <da**********@thermo.com> wrote in message
news:ep**************@TK2MSFTNGP11.phx.gbl...
Are there any plans to incorporate a native C# facility to deal with the OLE Structured Storage concept? It's clumsy at best to have to construct a C++ interface to the .doc files (or any such files by any suffix), when
Microsoft uses the concept in most, if not all, of their other products.
"Just how hard could it be?" he asks, knowing that 'hard' is a relative
concept.

--
David Groves
Thermo Finnigan--AID
da**********@thermo.com
512-251-1400

Nov 15 '05 #4
> I am developing a
solution that uses both the OSS structure and XML, so that we can move at a comfortable pace toward XML and away from OSS, but I'm still frustrated that I have to depend on the hand-waving that the COM approach seems to

require.

I understand exactly what you mean and share your disappointment. One of the
good things about structured storage is that, just like in filesystems, you
can do incremental upgrades to on of the leaves of the document without
upsetting the rest. Something which you cannot do with plain XML unless you
use a dedicated XML database (Yukon seems to be heading in that direction
and there are others). But it's not quite the same thing.
At some point one guy wrote an open-source replacement for structured
storage in C#. It's somewhere on Sourceforge though nobody seems to have
touched it for years. As I said, it was a replacement and not a
plug-compatible library, so you weren't able to read or write WinWord
documents using the library but you could only create new documents with a
philosophy similar to structured storage. I am afraid that's all there is. I
wonder if there are any commercial implementations out there but given the
decreased interest in the format I doubt it.

--
WildHeart'2k3
Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: tlviewer | last post by:
hello, In honor of the chm exploit that I got hit by last week, I trying to code some ActivePython to list the directory inside a CHM. CHM is supposed to be structured storage (ITSF). If a...
3
by: Edmond Neo | last post by:
I use structured storage to store large amounts of data in various streams. I realize that I can call structured storage through a wrapper in .NET, but I'm concerned that there is a performance...
3
by: HALLES | last post by:
HELLO ! in upper case: i mean to be heard ;o) Compilers are good ! Myself, i used TP6 and TP7 to work on dBASE V files, once ... a long time ago. I was unaware of Internet Usenet world,...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Group, After a long week end I am back again. Its nice and refreshing after a short vacation so lets get started with .NET once again. Today we will discuss about Isolated Storage. This is...
10
by: Dave | last post by:
Has anyone out there managed to create a structured storage file using pure VB.Net? Specifically; with the API function StgCreateStorageEx? If so, could you post a working example here please. One...
1
by: Gerald Hernandez | last post by:
The .NET Framework is huge, and either this isn't in there, or I'm just missing it... Are there any built-in methods to work with OLE2 Structured Storage files? Or am I stuck with using COM...
3
by: Dwight | last post by:
I need to be able to read and create Structured Storage Files. I have not been able to find anything about this except for C++, which I do not know. currently i'm using a DOC viewer (eDoc) just to...
2
by: ERE | last post by:
I'd like to encapsulate several files -- mostly graphics files -- as a single file. Does .NET provide a convenient way to do this? COM provided structured storage -- but I definitely don't want...
3
by: Gregory Gadow | last post by:
Is there a way to create structured files in .NET 2.0? Essentially, I want to take a hierarchic web site and convert it to a single, navigatable file similar to the compiled help, but using my own...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.