Solved

How do I read compound document properties?

Posted on 2004-09-30
5
333 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
More on Time zones in vb 2010 12 38
VB.net/WinForms: adjust Screen Resolution 6 58
Creating a route in asp.net webforms 2 25
Footer for each row on Gridview 2 21
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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