By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,313 Members | 2,798 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,313 IT Pros & Developers. It's quick & easy.

History of Word documents

P: n/a
Hi

I have a feature to open word documents from my vb.net app. Is it possible
that when a user saves a word document, my vb.net app gets the name under
which the document is saved and the date and time of saving, so I can keep a
history of all word documents?

Thanks
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The best way to do this would be to create a COM add-in for Microsoft Word,
which would run in the background of Word. It could detect when a document
is being saved by handling the DocumentBeforeSave event. In the event
handler, you could write some code to log whatever information you want
(document title, time, etc.)

Here are some links that might help:

HOW TO: Build an Office COM Add-in by Using Visual Basic .NET
http://support.microsoft.com/?kbid=302896

INFO: Develop Microsoft Office Solutions with Visual Studio .NET
http://support.microsoft.com/?kbid=311452

Understanding the Word Object Model from a .NET Developer's Perspective
http://msdn.microsoft.com/library/de...WordObject.asp
--Robert Jacobson

"John" <jo**@nospam.infovis.co.uk> wrote in message
news:eD**************@TK2MSFTNGP09.phx.gbl...
Hi

I have a feature to open word documents from my vb.net app. Is it possible
that when a user saves a word document, my vb.net app gets the name under
which the document is saved and the date and time of saving, so I can keep a history of all word documents?

Thanks

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.