?
Solved

Retrieving document properties

Posted on 2004-09-11
2
Medium Priority
?
563 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:
Fahad Mukhtar earned 1000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month12 days, 17 hours left to enroll

777 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