views:

129

answers:

2

I would like to hook into an Office application just before the print properties dialog is opened (the dialog where you choose the paper, printer, etc.). Which Windows API opens this dialog?

A: 

I'm afraid I still haven't found the right function.

The links you sent discuss the function 'DocumentProperties'. This is indeed called before the print dialog is opened, but it seems that this is not what calls the dialog itself. I hooked into DocumentProperties, but even when I blocked it the dialog still opened. I also tried hooking into OpenPrinter, which is called before DocumentProperties, but this didn't stop the dialog from opening either, so it isn't the one either.

I'll be happy to hear any other ideas!

rimono