locked
Print button not showing with Report Viewer in ASP.Net RRS feed

  • Question

  • User-1218295081 posted

    Dears,

    I have problem that print button not showing in IE or Chrome or Firefox browsers

    Is there any way to print report viewer from ASP.Net (Local Report)

    Thank you

    Tuesday, June 2, 2015 4:42 AM

All replies

  • User1711366110 posted

    Is there any way to print report viewer from ASP.Net (Local Report)

       As per this case, you can do it in two ways :

    1.you can manually printing a report based on suggestion from Brian Hartman's Report Viewer Blog .
    For that you can create a button or a image button and call the following code by its onclick method which is used to print from any browser :

    ReportPrintDocument rp = new ReportPrintDocument(ReportViewer1.ServerReport);
    rp.Print();
    

    2.Otherwise you can apply Cross-Browser Printing with Asp.Net ReportViewer which is also used to print from any browser , Click here to refer about it.

    Tuesday, June 2, 2015 9:45 PM
  • User-1218295081 posted

    I tried it but not working

    I'm using Local report

    Thank you

    Sunday, June 7, 2015 2:13 AM
  • User1711366110 posted


    I tried it but not working I'm using Local report

       As per this case, you can set the ShowPrintButton property as "true" in corresponding reportviewer markup like below :

    <rsweb:ReportViewer ID="ReportViewer1" runat="server" 
    ZoomMode="PageWidth" Font-Size="8pt" Width="980px" 
    ShowPageNavigationControls="False" ShowPrintButton="True">
    
    </rsweb:ReportViewer>
    

    If still not showing printbutton then I suggest you to write print function & call manually based on guidelines from the following link :
    https://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.createstreamcallback(VS.80).aspx

    Wednesday, June 10, 2015 1:06 AM
  • User-1218295081 posted

    I tried it but not working

    ShowPrintButton="True"
    Monday, June 15, 2015 2:57 AM
  • User1711366110 posted

    I tried it but not working

       As per this case, you could try cross-browser printing or write the manual function for Print button based on my suggestions from my previous replies.

    Monday, June 15, 2015 5:21 AM