?
Solved

Retrieving document properties

Posted on 2004-09-11
2
Medium Priority
?
576 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:
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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 …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

840 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