Solved

How do I read compound document properties?

Posted on 2004-09-30
5
362 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

623 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