FastReport VCL Azure Web App图像黑盒子

问题描述 投票:0回答:1

我们正在将Delpi IntraWeb应用程序从本地安装迁移到Azure Web App。我们的应用程序使用FastReport VCL 5导出PDF文件。这在本地工作正常,但是当我们在Azure Web App上执行相同操作时,PDF中的所有图像都是黑盒子。

有没有人有这种行为的经验,可以提供帮助?

Example of the visible image in the FastReport editor

Example of the PDF with black box instead of image

delphi azure-web-sites vcl fastreport
1个回答
2
投票

FastReport支持告诉我们他们无法解决问题,因为Azure Web Apps限制了对某些操作系统功能的访问,例如Registry和Graphics。你可以在这里阅读更多相关信息:https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox

我们的解决方案是使用FastReport生成没有图像的PDF,然后使用Gnostice PDF Toolkit将图像添加到生成的PDF文件中。 PDF Toolkit设法制作真实图像而不是黑盒子。这是一个hacky解决方案,但它允许我们重写更少的代码。

© www.soinside.com 2019 - 2024. All rights reserved.