I am using Telerik reporting to produce price labels for products within our stores.
I have a VB project which produces the labels when a feed is recieved from our central servers. The XML input contains pricing and various other characteristics which then populate various fields on the label.
I need this to be rendered in Helvetica, and then the report gets pushed to a label printer. The label printing software runs on approximately 160 Win 7 machines and runs under the Local System user.
I have installed Helvetica.ttf on our UAT machine, and whilst printing from Dev on my own machine renders the Helvetica font perfectly, I cannot get it to work on the UAT machine.
app.config
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
configSections
>
<
section
name
=
"Telerik.Reporting"
type
=
"Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting, Version=12.2.18.1129, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
allowLocation
=
"true"
allowDefinition
=
"Everywhere"
/>
</
configSections
>
<
Telerik.Reporting
>
<
privateFonts
>
<
add
fontFamily
=
"Helvetica"
path
=
"C:/Windows/Fonts/Helvetica.ttf"
/>
</
privateFonts
>
</
Telerik.Reporting
>
label.vb
Public Sub New()
Dim Functions As New GenericFunctions
Dim ExceptionFunctions As New ExceptionFunctions
Dim EXC As New CollatedException
Try
InitializeComponent()
Dim dblXOffset As Double = CDbl(PrinterVariables.LabelPrinterSettings.Xoffset)
Dim dblYOffset As Double = CDbl(PrinterVariables.LabelPrinterSettings.Yoffset)
Dim xOffset As New Unit
Dim yOffset As New Unit
Me.Style.Font.Name = "Helvetica"
xOffset = Unit.Mm(dblXOffset)
yOffset = Unit.Mm(dblYOffset)