This is a migrated thread and some comments may be shown as answers.

Programmatic Export to PDF not retaining font types?

4 Answers 195 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Xorcist
Top achievements
Rank 1
Xorcist asked on 21 Jan 2010, 09:17 PM
I've setup a report, and it opens fine in the preview pane, even exports fine (via the preview pane). However when I attempt to programmatically export this report directly to PDF the font types are not retained. They seem to default to MS Sans Serif... any idea why this might happen? I even tried manually specifying deviceInfo["FontEmbedding"] = "Full"; before I render the report (via a hastable), and it didn't help.

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 22 Jan 2010, 05:03 PM
Hello Xorcist,

We have not been able to replicate this on our end. Do you follow the export code we have in our documentation: Exporting a Report Programmatically? Any additional information (such as project type, hosting environment, font used etc) or a sample project would be highly appreciated.

All the best,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Xorcist
Top achievements
Rank 1
answered on 22 Jan 2010, 05:37 PM
I think I may have determined the source of my problems. I built the report locally, the copied the DLL over to our web server (since the report is being used as part of a web application). When I run it locally it works fine, when I run it through the site the fonts are note retained... I'm almost certain this is because the fonts are not installed on the web server... please correct me if I'm wrong about this.

In the meantime I'm going to install the fonts on the web server and see if it corrects the problems.
0
Accepted
Steve
Telerik team
answered on 25 Jan 2010, 07:43 AM
Hello Xorcist,

Yes, missing fonts on the server would cause such problems, that is why we have asked what fonts you are using. If you are using a custom font that you've added manually, it is natural that you should add the same to the server as well (restart might be needed).

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Narmatha P
Top achievements
Rank 1
answered on 08 May 2010, 11:32 AM
Hi experts,

This answer cant satisfy me. I used Eras Bk BT font. The font type is perfect in my browser, but not in the pdf. Is there any way to add the font type in .dll and retain the same font in the pdf?
Tags
General Discussions
Asked by
Xorcist
Top achievements
Rank 1
Answers by
Steve
Telerik team
Xorcist
Top achievements
Rank 1
Narmatha P
Top achievements
Rank 1
Share this question
or