如何嵌入字体在RDLC PDF文件字体、文件、RDLC、PDF

2023-09-03 16:37:26 作者:你的葬礼我会盛装出席

我使用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.