I have a .Net 4.6 C#/WPF app that is deployed on several Windows 10 desktops. Reporting is done using local RDLC reports. These can be previewed by the user in a ReportViewer control housed in a Windows Form. I have dozens of reports in this app that have all previewed as designed for years. The app was installed on a new user workstation recently, and on this system, one particular report that displays DataBar charts in the rows of the report Tablix is enlarging just these chart items by over a factor of 2. This screen shot shows how this tablix looks on all other systems vs. this new system: Odd chart enlargement
Edit: Also found that this font error occurs on this report when rendering the report to PDF. All reports in the application use the following logic to render to PDF. Only this report is showing this font enlargement:
// Variables
Warning[] warnings;
string[] streamIds;
string mimeType = string.Empty;
string encoding = string.Empty;
string extension = string.Empty;
// Setup the report viewer object and get the array of bytes
reportViewer1.ProcessingMode = ProcessingMode.Local;
reportViewer1.LocalReport.DataSources.Clear();
ReportDataSource datasource = new ReportDataSource("MainData", RptData);
reportViewer1.LocalReport.DataSources.Add(datasource);
byte[] bytes = reportViewer1.LocalReport.Render(
"PDF", null, out mimeType, out encoding, out extension,
out streamIds, out warnings);
using (FileStream fs = new FileStream(fileName, FileMode.Create))
{
fs.Write(bytes, 0, bytes.Length);
}
What might cause one particular system to render this one part of this report so strangely?