Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting properties of a word document

Status
Not open for further replies.

john829

Programmer
Sep 14, 1999
10
US
I need to get the properties of a Word Document, specifically the author and revision dates. Is there an easy was to extract this info?
 
Hi John,
there is msword8 object modle available. What u can do is use that modle. Create an Application object that returns the Documents object. From that open single Doument. that document will return u the author and all other details u want.
Code:
m_ptheApplication = new _Application();
// Attach a Dispatch object with the above created application.
m_ptheApplication->CreateDispatch("Word.Application");
// Get the documents from the currently activated application.
m_theDocuments  = m_ptheApplication->GetDocuments();
m_theDoc = m_theDocuments.Open(vFileName,.....);

m_theDoc.GetCreator(); etc etc...
I guess this will surely help u.
Thanks and Regards,
Hemant


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top