Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ReportViewer Control PrintDialog Window

Status
Not open for further replies.

cs2009

Programmer
Aug 10, 2009
50
US
Using C# 2005.

In a Windows application I have a button (not the button that is part of the ReportViewer control) which opens the client PrintDialog Window for the ReportViewer control.

Code:
this.reportViewer1.PrintDialog();

I do this in a button because I am setting the default printer to a particular printer. I want to set the default printer back to a saved value after the dialog Window closes, but I don't know to capture the event when the PrintDialog Window closes.

Please help.
 
I learned that the code is stopping at the PrintDialog(). I added additional code after PrintDialog to set the default printer back to a saved printer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top