如何嵌入字体在RDLC PDF文件 [英] How to embed a Font in a PDF with RDLC

查看:1420
本文介绍了如何嵌入字体在RDLC PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Microsoft.Reporting.WebForms.LocalReport生成一些PDF,一切都用得好好的,但现在邪恶的营销要使用自定义字体(他们正在使用这种疯狂的论据,企业形象之类的东西)。

i am using Microsoft.Reporting.WebForms.LocalReport to generate some PDF, everything works like a charm, but now evil marketing wants to use a custom font (they are using such crazy arguments as "corporate identity" and stuff).

我已经瞪大眼睛四周,现在我知道,

i already goggled around and now i know that

  • 在我需要的ReportViewer 2008 SP1或更高版本
  • 字体已被标记为允许嵌入
  • 字体必须是TrueType字体

但它仍然无法正常工作。 我相信RDLC不支持此功能,没有任何人知道,如果是这样的话? 遗憾的是我不能使用服务器端的报告,因为我缺少一个报告服务器。

but it still doesn't work. i belief that RDLC does not support this feature, does anybody know if this is the case? unfortunately i cant use Server-side reports cause i am lacking a Reporting Server.

TIA

推荐答案

嵌入字体的作品与微软报告2010或更高版本的下列限制仍然适用

Embedding font’s works with Microsoft Reporting 2010 or later the following restrictions still apply

  • 字体必须标记为允许嵌入
  • 在字体的类型必须是TrueType字体的

您可能会遇到你的字体是越来越嵌入的问题,但在宋体您的PDF仍然显示文本。这发生在我身上后,我安装了一些新的字体在Windows Server 2008 R2,重启程序池(ASP.NET MVC)并没有解决这个问题,重新启动服务器需要。

You may experience the problem that your Font is getting embedded but your PDF still displays text in Arial. This happened to me after i installed some new fonts on a Windows Server 2008 R2, restarting the AppPool (ASP.NET MVC) did not solve this Problem, a Server restart was needed.

这篇关于如何嵌入字体在RDLC PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆