代码之家  ›  专栏  ›  技术社区  ›  Moe Sisko

Windows 2016 server上的SSRS导出为PDF字符间距问题

  •  1
  • Moe Sisko  · 技术社区  · 6 年前
    Using: SQL Server 2012 Reporting Services,
    Product Version: 11.0.7462.6
    Report Server Mode: Native
    

    Sample rdl file contents here

    在Windows 2008 R2服务器上,生成的PDF看起来正常:

    enter image description here

    在Windows 2016服务器上,PDF存在较小的间距问题(请参阅红色下划线的位):

    enter image description here

    ="Chos achrPapis Frhmistisya Sdt AFT hTe apetociaschmrdtP rilyus TtFam l25044025 - stuTr" & vbcrlf & "a"
    

    请注意,行“2”显示正常。第2行的文本值与第1行相同,但只有1行:

    ="Chos achrPapis Frhmistisya Sdt AFT hTe apetociaschmrdtP rilyus TtFam l25044025 - stuTr" 
    

    因此,似乎有一个回车是这个问题的一个因素。

    另外,在第3行中,“world”和“Support”之间应该有一个空格,但是没有。

    问题似乎只在导出到PDF时出现。用Html、Word等语言生成的报告看起来不错。

    编辑:我应该补充一点,报告中没有使用特殊字符或类似的字符。

    1 回复  |  直到 6 年前
        1
  •  2
  •   Nikola    6 年前

    莫伊,

    我不能确认你的问题。我部署了2016年SSRS的报告,在我看来还不错。 我正在使用:

    二次系统: Microsoft SQL Server Reporting Services版本13.0.4446.0

    Microsoft SQL Server 2016(SP1-CU4)(KB4024305)-13.0.4446.0(X64)2017年7月16日18:08:49版权所有(c)Microsoft Corporation Standard Edition(64位)on Windows Server 2016 Standard 6.3(内部版本14393:)(虚拟机监控程序)

    可能你的CU和我在这里使用的CU不一样,所以我建议将SQL更新到最新版本。

    见下图:

    enter image description here