I am really confused, what actually happens when
is called?
Does it print immediately or does it bring up a UI/Dialog?
I understood that you were originally asking for this behaviour:
- User wants to print, so clicks the Excel print button
- Your messagebox comes up and tells them they can't print this way
- They must now go to the add-in and start printing from there
I was suggesting this behaviour:
- User wants to print, so clicks the Excel print button
- We've hijacked the Excel print button, so we can do anything now, so we cancel his 'normal' print request. Now rather than complain at him, just do what he asked, print.
- So call the PrintDocX routine, and start printing immediately.
Of course if Call PrintDocX isn't actually an instruction to start printing, then that's why I've been confused.
Bookmarks