我有一个由 asp.net core 为后端开发并使用 React js 为前端的项目。我使用 fastreport 生成 pdf。当我使用 fastreport 设计视图时,我的自定义字体工作正常,但当我发布到服务器自定义字体时却不起作用t 出现。请检查下面的图片链接以更好地理解。我使用的是 fastreport 2020.1 版本,并且在 asp.net core 中使用了 fastreport 开源 dll。
1.https://i.sstatic.net/MG3Bt.png 2.https://i.sstatic.net/iY6gS.png
注意:我正在使用会员代码作为机构fb字体。当发布机构字体更改时。
我参加聚会迟到了,但我是这样做的。
Report report = Report.FromFile("Complete File Path");
report.RegisterData(data, "Data Binding Name");
report.Prepare();
PDFExport export = new() { EmbeddingFonts = true };
MemoryStream stream = new();
report.Export(export, stream);
嵌入字体= true。我想你错过了这个。