Monzir
Monzir

Reputation: 621

Print button not visible in ReportViewer

I have a report viewer that shows a remote report. But when the report is loaded i can't see the print,refresh buttons. The same thing happens on the server PC when i try to check my reports in the report manager. (Used Chrome,Firefox)

Here is a screenshot the toolbar where the buttons should be.

enter image description here

This my reportviewer starting tag code. (The buttons are all "true" to be visible)

        <rsweb:ReportViewer ID="ReportViewer1" runat="server" CssClass="reportviewer" Font-Names="Verdana" BorderColor="Black" ShowBackButton="true" ShowPrintButton="true" ShowRefreshButton="true"
        BorderStyle="None" Font-Size="8pt" InteractiveDeviceInfos="(Collection)" WaitMessageFont-Names="Verdana" AsyncRendering="false" SizeToReportContent="true" 
        WaitMessageFont-Size="14pt" Height="1050px" Width="900px" ProcessingMode="Remote">

I have tried to fix this problem by installing ReportViewer Redistributable pack 2010 in both my development PC and the server. I tested both local and remote reports but it's the same on both cases.

How can i fix it?

Environment: SQL Server 2012 64 bit; IDE: VISUAL STUDIO 2010;

NOTE 1 : The refresh button is visible when i remove all of the css references. (Thanx @DJ KRAZE for pointing that)

NOTE 2 : Just checked the new CSS rules and the print button is visible in IE.

Upvotes: 7

Views: 69695

Answers (2)

Apollo
Apollo

Reputation: 2070

Print button is hidden in any browser that is not IE because ReportViewer uses ActiveX for client printing which means no other browser other than IE can handle it.

Upvotes: 6

Monzir
Monzir

Reputation: 621

Here is a class in Brian Hartman's Report Viewer Blog that can print both local and server reports.

Just create a button or a image button and use it like this in the onclick method to print from any browser.

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

Upvotes: 5

Related Questions