请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

新致万全

金牌服务用户

9

主题

31

帖子

86

积分

金牌服务用户

积分
86
新致万全
金牌服务用户   /  发表于:2025-11-18 11:31  /   查看:68  /  回复:2
1金币
报表部署在docker中,加载报表报错如下:
TextFormat has no associated Font, and a default font could not be found. To avoid this situation, assign an available font to FontCollection.SystemFonts.DefaultFont if it is null.","errorCode":null,"errorData":[],"errorType":"Exception","stackTrace":"   at GrapeCity.ActiveReports.Rendering.Tools.EnumerableExtension.ForceInBackground[T](IEnumerable`1 src, CancellationToken cancellationToken)+MoveNext()\n   at GrapeCity.ActiveReports.Core.Export.Html.Page.HtmlRendering.RenderInStreamingMode(IReport report, Func`2 getStream, HtmlSettings settings, CancellationToken cancel, Action`1 onComplete)\n   at GrapeCity.ActiveReports.Web.Viewer.I.\uE030.RenderHtmlView(Object document, Func`2 getOutStreamFn, \uE014 exportSettings, Action onPageReady, CancellationToken token)\n   at GrapeCity.ActiveReports.Web.Viewer.I.\uE026.RenderHtmlView(Object document, Func`2 getOutStream, \uE014 settings, Action onPageReady, CancellationToken token)\n   at GrapeCity.ActiveReports.Web.Viewer.I.\uE00C.\uE002.\uE000(Task`1 task)"


看描述是字体问题,以下是部署的目录,这个问题需要如何解决?

附件: 您需要 登录 才可以下载或查看,没有帐号?立即注册

最佳答案

查看完整内容

从错误信息看,是富文本使用的字体找不到,且默认的字体也没有安装。需要在docker 容器中安装对应的字体才行。 您可以参考下这个文档中的描述,先安装字体试试: https://www.grapecity.com.cn/solutions/wyn/help/docs/installation-deployment/faq-about-installation/faq025

2 个回复

最佳答案
最佳答案
Eden.SunWyn认证
超级版主   /  发表于:2025-11-18 11:31:45
来自 3#

从错误信息看,是富文本使用的字体找不到,且默认的字体也没有安装。需要在docker 容器中安装对应的字体才行。

您可以参考下这个文档中的描述,先安装字体试试:
https://www.grapecity.com.cn/sol ... installation/faq025
回复 使用道具 举报
新致万全
金牌服务用户   /  发表于:2025-11-18 11:41:14
2#

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部