Andrew Kennard was telling us:
Andrew Kennard nous racontait que :
> Jean-Guy
>
> Thanks very much for your detailed reply.
>
> Sorry I should have mentioned that I am 'integrating' with Word as a
> COM automation object from a language called Visual Dataflex.
Ha, now you tell us!
> Now VB examples are usually fine and I can "convert" them
>
> Would I be correct in assuming your example below is in VBA and is in
> effect controlling word from the inside out rather than the outside
> in ?
Yes.
> Do you know how I could achive the same thing from a separtate VB app
> that controls word as a COM Automation object ?
>
> Thanks again for your assistance
I guess that you would still need a template that would call your Add-in.
The call could pass the activeDocument as an object to the Add-in.
But I have never really work with pure VB add-in, wait, it won't be long
before someone else joins us!

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Andrew Kennard - 23 May 2007 09:38 GMT
Jean-Guy
Thanks for your reply
Let's hope others join the party soon !
Cheers
Andrew
> Andrew Kennard was telling us:
> Andrew Kennard nous racontait que :
[quoted text clipped - 26 lines]
> But I have never really work with pure VB add-in, wait, it won't be long
> before someone else joins us!
Perry - 29 May 2007 22:10 GMT
Any reason *not* to use the Doc Before Save event?
--
Krgrds,
Perry
System:
Vista/Office Ultimate
VS2005/VSTO2005 SE
> Jean-Guy
>
[quoted text clipped - 36 lines]
>> But I have never really work with pure VB add-in, wait, it won't be long
>> before someone else joins us!
Andrew Kennard - 31 May 2007 09:29 GMT
The doc hasn't actullay been saved at that point and the user can cancel the
save or change the name of the doc in the case of SaveAs etc The save
operation just hasn't happend yet.
Regards
Andrew
> Any reason *not* to use the Doc Before Save event?
>
[quoted text clipped - 47 lines]
>>> But I have never really work with pure VB add-in, wait, it won't be long
>>> before someone else joins us!
Andrew Kennard - 31 May 2007 11:37 GMT
... and if it is a new document first save then it wont even exist on disc
Regards
Andrew
> The doc hasn't actullay been saved at that point and the user can cancel
> the save or change the name of the doc in the case of SaveAs etc The save
[quoted text clipped - 55 lines]
>>>> But I have never really work with pure VB add-in, wait, it won't be
>>>> long before someone else joins us!
Andrew Kennard - 05 Jun 2007 10:13 GMT
So not many people using word as a COM Automation object ? or is the lack of
"AfterEvents" just not a problem in you applications ?
Thanks
Andrew
> ... and if it is a new document first save then it wont even exist on disc
>
[quoted text clipped - 61 lines]
>>>>> But I have never really work with pure VB add-in, wait, it won't be
>>>>> long before someone else joins us!