Solved

Retrieving document properties

Posted on 2004-09-11
2
553 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
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

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