How to cancel printing in ReportViewer1.Print Event? <p>I created ReportViewer1. It will show preview and I need to cancel print out to a printer when the user clicks a Print Button on the toolbar. </p> <p>Like this </p> <pre><code>Private Sub ReportViewer1_Print(sender As Object, e As ReportPrintEventArgs) _ Handles ReportViewer1.Print Me.ReportViewer1.CancelRendering(0) ''/ &lt;----Cancel Printing RaiseEvent Click_Print(False) End Sub </code></pre> <p>But CancelRendering is not working because it shows dialogSetting for the selected printer.</p>