Extracting and displaying file custom properties

Posted on 2004-10-24
Medium Priority
Last Modified: 2010-05-18
I have an urgent question. How can I extract and display file custom properties (that is, microsoft documents) in VB.NET?

Your help will be very much appreciated
Question by:uncivilizedpikinini
LVL 10

Accepted Solution

NetworkArchitek earned 172 total points
ID: 12397481
Hi uncivilizedpikinini,
I have not done a lot with OLE and VB.NET but let me know if this gives you any ideas.



Assisted Solution

hagipmc earned 164 total points
ID: 12397813

This is for OfficeXP(you should have reference to those dlls: office.dll, Microsoft.Office.Interop.Word.dll)

'Test if the Word isn't already started
If IsNothing(appWord) Then
    appWord = New word10.ApplicationClass
    appWord.Visible = True

End If

Dim doc As word10.Document

doc = appWord.Documents.Open(sPath, ReadOnly:=False)

Dim objCustomProp As Object = doc.CustomDocumentProperties 'this line returns the custom properties

LVL 34

Expert Comment

ID: 12398250
dont need the refrence's, you can still late bind in vb.Net

Dim appWord as new object
appWord = Microsoft.VisualBasic.CreateObject("word.application")

LVL 18

Assisted Solution

armoghan earned 164 total points
ID: 12398402
LVL 18

Expert Comment

ID: 12733186
NetworkArchitek , hagipmc , Armoghan

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
If you are looking for an automated solution for backup single or multiple Office 365 user mailboxes to Outlook data file, then you can use Kernel Office 365 Backup & Restore tool. Go through the video to check out the steps to backup single or mult…

627 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