Report not showing Font

2 posts, 0 answers
  1. Stu
    Stu avatar
    1 posts
    Member since:
    Mar 2018

    Posted 09 Oct Link to this post

    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)

     

  2. Nasko
    Admin
    Nasko avatar
    1070 posts

    Posted 11 Oct Link to this post

    Hello Stu,

    If you haven't tried this, please restart the UAT machine after installing the Helvetica.ttf font. This is required in order for the application to be able to find the font.

    More information on the topic of fonts in reports can be found in the Font Requirements help article. Note that private fonts are not needed when the font is installed properly on the server machine.

    Regards,
    Nasko
    Progress Telerik

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top