Group:  Microsoft Word ยป microsoft.public.word.vba.addins
Thread: Capture print events in Word 2007

Capture print events in Word 2007
StrictlySocial 6/12/2007 8:28:00 AM
Hi,

I am creating an addin and one of the features it needs to do is save a copy
of the Word document to an audit trail when the document is printed. Does
anybody know how I am able to capture print events within Word 2007? I can't
find any information regarding capture events in Word 2007 anywhere

Thanks in advance
RE: Capture print events in Word 2007
StrictlySocial 6/12/2007 9:34:04 AM
Sorry - should also have said that I am writing the application using VS2003
(.net 1.1).


"StrictlySocial" wrote:

[Quoted Text]
> Hi,
>
> I am creating an addin and one of the features it needs to do is save a copy
> of the Word document to an audit trail when the document is printed. Does
> anybody know how I am able to capture print events within Word 2007? I can't
> find any information regarding capture events in Word 2007 anywhere
>
> Thanks in advance
Re: Capture print events in Word 2007
"Doug Robbins - Word MVP" <dkr[ at ]REMOVECAPSmvps.org> 6/12/2007 10:23:01 AM
You can intercept Word commands by creating a macro with the same name as
the command.

As there are a couple of print commands, you would need one for each of
FilePrint and FilePrintDefault.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"StrictlySocial" <StrictlySocial[ at ]discussions.microsoft.com> wrote in message
news:42A3663E-C5AA-4D7F-BC71-8E38BB51CE48[ at ]microsoft.com...
[Quoted Text]
> Hi,
>
> I am creating an addin and one of the features it needs to do is save a
> copy
> of the Word document to an audit trail when the document is printed. Does
> anybody know how I am able to capture print events within Word 2007? I
> can't
> find any information regarding capture events in Word 2007 anywhere
>
> Thanks in advance


Home | Search | Terms | Imprint
Newsgroups Reader