Solved

File Properties Summary - Set Or Read Without WMI

Posted on 2008-10-30
5
196 Views
Last Modified: 2010-05-18
Hello All,

I need to when creating or listing a file I need to be able to read or write the file summary properties (when you right click on file and select "Properties" and "Summary".) so I can read this information into a datatable. I can't use WMI because boss won't allow the reference to be added to project.

Thank you for your help.
0
Comment
Question by:scorpion53061
  • 2
5 Comments
 
LVL 41

Expert Comment

by:graye
ID: 22849361
That not quite as easy as it first seems... it will require a COM-based reference to dsofile.dll that you can download here:  http://www.microsoft.com/downloads/details.aspx?FamilyId=9BA6FAC6-520B-4A0A-878A-53EC8300C4C2&displaylang=en
However, if "they" won't let you use WMI (which is already installed), then what's the chance they'd let you install a DLL?
0
 

Author Comment

by:scorpion53061
ID: 22854782
They will not. The references on thsi project I am on are already scrwed up beyond belief. I thought about the dsofile.dll a while back and tried to get permission and they would not.
0
 
LVL 41

Accepted Solution

by:
graye earned 500 total points
ID: 22855494
Then you're pretty much screwed...     So, that means your only hope (other than finding work somewhere else) is to essentially re-write the DSOFILE.DLL functionality "by hand"
I'd recommend you start with the Office SDKs (multiple versions, I'm afraid) and try to figure out where and how the Summary data is stored in each document type.   You might have some luck with the source code to OpenOffice as they might have already figured it out.
 
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…

740 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