Handle Events for Word by Using Visual C# .NET

  • Thread starter Thread starter John
  • Start date Start date
J

John

Has anybody tried this code
(http://support.microsoft.com/default.aspx?kbid=302817)?.
When I run the programme it freezes when it reaches the
event handler...
//============ Set up the event handlers ===============

oWord.DocumentBeforeClose +=
.....
Any Idea what's wrong?
(My programme is trying to access the directory of the
word file that is opened)
 
The sample code runs on OfficeXP. What version of Word are you using?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top