I'm implementing the Word object in a class to print a document. Instead of printing outright, I show the FilePrint dialog box by the code, "objWord.Dialogs(wdDialogFilePrint).Show", and let the use decided whether to cancel or continue printing.
Now here lies the problem. I want to be able to catch the event (or whatever it is that I could catch) when the user clicks on the cancel button. I couldn't find a way to do this.
I figured the use of Common Dialog box might solve the problem BUT as I am coding a class, I needed to reference commdlg32.dll - and I can't. "Can't add a reference to the specified file" error shows up. I had to drop this.
Is there anyone who can provide me a solution so I'd know when the printing is cancelled?