SSRS 使用 MICR 字体打印支票

SSRS Check printing using MICR font

我需要为发票创建 AP 检查。我在 SSRS 报告的支票底部使用 MICR 字体。我使用的文本框大小是字体大小的 3 倍。当我预览报告时,文本显示为 Arial 字体。当我导出为 PDF 并打开该 PDF 文件的文档属性时,它显示存在 MICR 字体。但它不像检查 routing/accounting 数字时使用的 MICR 字体那样显示。

它不适用于报表查看器、导出的 PDF 或 word 文件。 谁能指导我如何在文本框中显示该字体?

是TrueType字体吗? Microsoft 已公开声明,如果您使用的不是 TrueType,例如OpenType,您可能 运行 遇到 SSRS 和 Report Builder 的问题。 OpenType 并非不受支持,但最多只能提供有限的支持。

如果 TrueType 字体可用于 MICR,请确保将其安装在您的客户端和服务器计算机上。当您在服务器上安装字体时,您需要重新启动 Reporting Services 服务,或者最好是服务器,以检测更改。我发现这篇文章在为 SSRS 设置自定义字体时非常有用:Setting up Custom Fonts with SQL Server Reporting Services.

您在报告中看到类似于 Arial 的字体是因为 Windows Forms Applications 的限制。

The root cause is that Windows Forms applications support TrueType fonts and have limited support for OpenType fonts. If we attempt to use a font that is not supported in Report Builder or SQL Server Data Tool (SSDT) to design a report, the Microsoft Sans Serif font will be substituted.

在此source找到。