1

I'm using the LocalReport.Render() (documentation) method to generate a PDF from an .rdlc template.

In the template I'm using Calibri which renders prefectly when executing from my development environment. However when I publish the application to the server it appears the font is reverting to Arial.

The font is installed in C:\Windows\Fonts on both machines. Looking at the produced PDFs both seem to have access to Calibri:

enter image description here

Do you have any ideas of what may be causing this?

m.edmondson
  • 30,382
  • 27
  • 123
  • 206
  • Did you recently install the font on the production machine? – Stephen Aug 13 '13 at 11:50
  • Yes, and can see it in both C:\Windows\Fonts and in the registry. – m.edmondson Aug 13 '13 at 11:57
  • Have a look at the answer to this question: http://stackoverflow.com/questions/2964117/windows-fonts-not-immediately-useable-in-application-after-installing – Stephen Aug 13 '13 at 12:01
  • @Stephen - Thanks very much, that link answered my question. – m.edmondson Aug 13 '13 at 13:29
  • I am also having this problem. For me, it displays fine when in the ReportViewer control, but then the LocalReport.Render() method produces something very different. How can I get both to use the same font? – T.Coutlakis Feb 10 '14 at 13:27

1 Answers1

0

In the end I simply rebooted the server.

m.edmondson
  • 30,382
  • 27
  • 123
  • 206