v***@gmail.com
2005-05-12 14:28:58 UTC
Hi all,
I am writing a COM Add-in for Word 2000.
I assume the code below should disable printing,
Private Sub App_DocumentBeforePrint(ByVal Doc As Word.Document, ByRef
Cancel As Boolean) Handles App.DocumentBeforePrint
MsgBox("Printing is disabled")
Cancel = True
End Sub
But I can see the message saying "Printing is disabled" but the print
command carries on and the document is printed. I have seen most of the
earlier postings but no one seem to have such a problem.
Any help is appreciated.
Thanks in Advance,
Venu Gopal
I am writing a COM Add-in for Word 2000.
I assume the code below should disable printing,
Private Sub App_DocumentBeforePrint(ByVal Doc As Word.Document, ByRef
Cancel As Boolean) Handles App.DocumentBeforePrint
MsgBox("Printing is disabled")
Cancel = True
End Sub
But I can see the message saying "Printing is disabled" but the print
command carries on and the document is printed. I have seen most of the
earlier postings but no one seem to have such a problem.
Any help is appreciated.
Thanks in Advance,
Venu Gopal