Does anyone know of a way of changing the default font used on the tool bars so it matches that used on the report?
I think I may have a possible solution using Viewer.CssClass.
How do I get the CssClass function to find the embedded css file?
Thanks for your help
I don’t know if the ReportViewer ASP.NET object can reach the toolbar. You can set the font in OnInit or OnLoad:
viewer.Font.Name = “Verdana”;
viewer.Font.Size = 30;
Or you can set the css class:
viewer.CssClass = “viewer-mystyle”;
To define the css simply use a css file and link it in default.html like a standard html page.
Since upgrading to Windows 10 1803 the font no longer works. Is this an issue with SSRS and Windows 10 1803?
Just Checking
Hi Luca
Thanks.
What threw me was as you type, viewer.Font appears as only having {get}, however viewer.Font.Name appears as FontInfo {get, set}.
However just setting the Font Name works everywhere on the control, which includes both toolbars and report parameters, including the report loading spinner and the new print control.
Now this could be because I created a css file for the SSRS to match that of our rebrand, which you link in the SSRS WebConfig.
The font used on the actual reports stays unchanged which makes sense as this needs changing using Visual Studio report designer, for each report
Please login first to submit.