Solved

How do I read compound document properties?

Posted on 2004-09-30
5
322 Views
Last Modified: 2012-05-05
I need to be able to read the DocumentSummary and SummaryInformation streams from Office files.  I've looked for a full day and it seems that I need to use IPropertyStorage calls, but I have no idea how to use them.

Searching EE brought up quite a few questions, but most of them seemed to be either pointing to dead links or used the dsofile.dll, which has some limitations on non-win2k boxes.  I'd like to do this using API, but I am totally lost.  All examples from MSDN seem to be in C++, and C++ to VB conversion is not something I have ever tried.

I spent all day yesterday looking for some examples of using the API to do this, I'm hoping someone can make me look like an idiot and turn up a link or example source without much effort.
0
Comment
Question by:GohdanTheMoblin
  • 3
  • 2
5 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 12194423
What version of Office do you have?

Bob
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 12194437
I guess you saw this:

Dsofile.exe Lets You Edit Office Document Properties from Visual Basic and ASP
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q224/3/51.asp&NoWebContent=1

Bob
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 12194449
And this:

Structured Storage with .NET
http://www.dotnet247.com/247reference/msgs/16/84250.aspx

Bob
0
 
LVL 2

Author Comment

by:GohdanTheMoblin
ID: 12194813
The version of Office should be Office 2k, but we may upgrade to OfficeXP soon.  I assume there's some kind of Office automation solution, but ultimately I need this to extend to any file type with the summary information.

I found the dsofile.exe article, and it may end up being the best solution.  The more I think about it, the only way non-OLE files can have that information is through an ADS, and that is an NTFS feature added in Win2k, so that would explain the limitation the file describes.  I am trying to avoid a black box solution, but so far this is the easiest working solution.

I'm looking over the wrapper class that was posted at dotnet247, but I'm not too confident in it since the other posters seem like they had problems with it, but they may be trying to do something a little more than what I want.

Too bad this project didn't come to me later, I'm finding that the versions of .NET with the Longhorn Beta have a System.IO.CompoundFile namespace that has this functionality.  I think all of this stuff is way over my head, but I'm still trying.

0
 
LVL 2

Author Comment

by:GohdanTheMoblin
ID: 12196674
I think I'm going to have to end up going with the dsofile solution.  Thanks for the help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now