So I have several well established applications for which I have not made any recent changes to. All of these applications have reporting functionality built in and Im displaying the reports in a report viewer. All standard stuff nothing exceptional in the setup. Up until about 3 weeks ago you could, from the ReportViewer print a report in Chrome without issue. Now.....every thing I print is blank. I can open these same reports, exported as PDF's, in Edge, IE or Adobe Reader and print them without any problems at all.
Im going to include some code for one of the basic reports but as you can see...nothing special. I learned that Chrome has made some changes to the the PDF plugin support but I dont really understand how this affecting the printing of a report from the ReportViewer. My test report only has a label field on it for simplicity's sake. Im running the latest versions of the WebUI and the Reporting software. The report looks normal in print preview and even if I select Print using system dialog the results are the same.
Again these arent new reports and no code changes have been made to them in months. My guess is Chrome has done something or perhaps there is a new setting im not aware of in either Chrome or the ReportViewer. Ive also tried the "Keep Together=false" setting to no avail.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Test" %>
<%@ Register TagPrefix="telerik" Assembly="Telerik.ReportViewer.WebForms" Namespace="Telerik.ReportViewer.WebForms" %>
<link href="//fonts.googleapis.com/css?family=Arial:400,300,600,700|Raleway:400,300,600,700|Archivo+Narrow:400,700" rel="stylesheet" />
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" />
<link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css" rel="stylesheet" />
<link href="../styles/site.css" rel="stylesheet" />
<form id="form1" runat="server">
<telerik:ReportViewer ID="ReportViewer1" runat="server" ReportSource-IdentifierType="TypeReportSource" Width="850" Height="1000"></telerik:ReportViewer>
public partial class Test: System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
dynamic report1 = Activator.CreateInstance(System.Reflection.Assembly.Load("EMS").GetType("TestReport"), false);
InstanceReportSource rptSource = new InstanceReportSource();
rptSource.ReportDocument = report1;
this.ReportViewer1.ReportSource = rptSource;
I dont mind telling users export only then print using Adobe Reader or another browser but I really liked being able to print from the ReportViewer.