Solved

File Properties Summary - Set Or Read Without WMI

Posted on 2008-10-30
5
194 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

770 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