Solved

Retrieving document properties

Posted on 2004-09-11
2
557 Views
Last Modified: 2012-06-21
How do you retieve the following document summary properties using vb.net:

Title, subject, author, category, keywords and comments?

0
Comment
Question by:kjalderman
[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
2 Comments
 
LVL 19

Accepted Solution

by:
Desp earned 250 total points
ID: 12037877
there is not pure .Net way for this,.
here is a solution but its in C# and uses COM
http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_20815927.html

I am translating the code to get the information of Word Document in vb.net. The starting steps are same for both C# and vb.net

Dim dso As New DSOleFile.PropertyReaderClass()
Dim dp As DSOleFile.DocumentProperties = dso.GetDocumentProperties("abc.doc")
TextBox1.Text = dp.Author
TextBox2.Text = dp.Comments
TextBox3.Text = dp.Keywords
TextBox4.Text = dp.WordCount
TextBox5.Text = dp.Subject
0
 

Author Comment

by:kjalderman
ID: 12068301
Thank you.  That was exactly what I was looking for.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

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 …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

688 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