At first, I wanna thank you for your support.
So, I if put that code in che onConnection method, I have one error becouse
VS don't know "ActiveDocument", "ActiveDocument don't declared" and I can't
build the project.
I used this code becouse unfortunally I have not [MyDoc] object.
> Dim sFullFileName As string
> sFullFileName = ActiveDocument.FullName
thank u again.
> If "myTest.doc" is the active document in the active Word session you could
> go:
[quoted text clipped - 10 lines]
> Krgrds,
> Perry
Cindy M. - 23 Apr 2007 14:33 GMT
Hi =?Utf-8?B?ZGV2?=,
> So, I if put that code in che onConnection method, I have one error becouse
> VS don't know "ActiveDocument", "ActiveDocument don't declared" and I can't
[quoted text clipped - 4 lines]
> > Dim sFullFileName As string
> > sFullFileName = ActiveDocument.FullName
ActiveDocument is a property of the Application object. You have to start have
a variable assigned to the Word.Application, for example wdApp:
wdApp.ActiveDocument.FullName
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)