NAV 2013, NAV 2015 RDLC Reports – Font size issue.

As you probably know, it is fairly easy to use HTML formatting on RDLC report controls. Sometimes it is quite useful, especially for things like footers or so, when you need to put something like company details in strictly formatted way, using different fonts and colors for single line of text, like: ‘NAV Workshop LTD Registered address: XXXXXXXX, ZZZZZZZZZ, Warwickshire, United Kingdom’, Company No: 900000′.  Of course, this can be accomplished by creating a separate text box for each formatting, but it is a bit of overkill. HTML formatting like

<span style="font-size: 8pt;"><span style="color: #003366;"><strong>NAV Workshop LTD</strong></span> Registered address</span>: <span style="font-size: 8pt;"><strong>XXXXXXXX, ZZZZZZZZZ, Warwickshire</strong>,</span> <span style="font-size: 8pt;">United Kingdom, Company No:<strong> 900000. </strong></span>

will easily do a trick.

Where the issue then? In code example above there is no issues, but if you use something like

<span style="font-size: Medium"><span style="color: #003366;"><strong>NAV Workshop LTD</strong></span>

– then you re in trouble. Although it is fine to use relative font-size on HTML, but just don’t do it on RDLC reports HTML, as it will be rendered differently on different machines. Just use strict font-size.

Leave a Reply

Your email address will not be published. Required fields are marked *