tags:

views:

497

answers:

2

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.

+1  A: 

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.

Jack B Nimble
Agreed! I have had to do the exact same thing recently. Rolling your own is surprising easy.
Gary Willoughby
A: 

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

Gary Willoughby
I think it would be confusing for customers to select a printer before previewing.
Jack B Nimble