Print Dialog from Print Preview

  • Thread starter Thread starter George Yu
  • Start date Start date
G

George Yu

How can I trap when the user clicks the print button(icon)
in the PrintPreviewDialog box, so I can display a
PrintDialog? I need to be able to display the dialog so
the user can select which printer to print to as well as
what page range to print.
 
* "George Yu said:
How can I trap when the user clicks the print button(icon)
in the PrintPreviewDialog box, so I can display a
PrintDialog? I need to be able to display the dialog so
the user can select which printer to print to as well as
what page range to print.

You can add a handler to intercept the click event using 'AddHandler'.
 
Herfried, Thanks for the response. How do I exactly go
about adding a handler to the click event of the print
button when the toolbar in the print preview class is an
inherited control? I attempted to loop through the
controls and add a handler but this is not working. Let me
know if you have any suggestions. Thanks in advance.
 
Back
Top