Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Equivalent of Workbook_BeforePrint in C++?
I had a plugin for Excel written in C++, with an event sink. Another
functionality request to add was to validate certain data before printing the workbook. If the data can not be validated correctly, then the print job must be canceled. The event sink can get the print event correctly in the Invoke() method (inherited from IDispatch), but how can I cancel the print job? In VBA, you can set the cancel flag to true in Workbook_BeforePrint subroutine, but there does not seem to have an equivalent in C++. The question is, how can I cancel the print job from inside the Invoke() function, or at least, tell Excel that it should not continue with printing? Thanks in advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Workbook_BeforePrint macro | Excel Programming | |||
Workbook_BeforePrint | Excel Programming | |||
Workbook_BeforePrint performs twice ? | Excel Programming | |||
Workbook_BeforePrint | Excel Programming | |||
Problem - Workbook_BeforePrint | Excel Programming |