Solved

Retrieving document properties

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now