Jack B Nimble
Jack B Nimble

Reputation: 5087

How do I capture the Print Event in PrintPreviewDialog

I am inheriting from the PrintPreviwDialog class in c#. I want to override the Print button on the toolbar, so that I can give the option of printer selection.

Unfortunately it looks like the toolbar control that has the print button is private, and I don't see any events that I can override.

There must be some solution to getting the print preview dialog and then being allowed to use the PrintDialog control.

Upvotes: 0

Views: 2017

Answers (2)

Gary Willoughby
Gary Willoughby

Reputation: 52608

Use the PrintDialog first to select a printer then open the PrintPreviewDialog.

Upvotes: 0

Jack B Nimble
Jack B Nimble

Reputation: 5087

It would appear I just have to recreate all the functionality I want in a new form with the controls. The PrintPreviewDialog class is worthless.

Upvotes: 1

Related Questions