Issue with Exporting Report to PDF in a Linux Docker

Stimulsoft Reports.WEB discussion
Post Reply
pexebez230
Posts: 7
Joined: Wed May 08, 2024 5:53 am

Issue with Exporting Report to PDF in a Linux Docker

Post by pexebez230 »

I'm facing a problem generating and exporting reports to PDF on a Linux machine using Docker and the C# .NET6 API. While it works correctly on a Windows machine, the report appears blank on the Linux machine. I'm using the SEGOE UI font, which I have attempted to install on my Docker without success:

RUN apt-get update && apt-get install -y libgdiplus fontconfig

RUN mkdir -p /usr/share/fonts/truetype/segoeui

COPY Api/Fonte/*.ttf /usr/share/fonts/truetype/segoeui/

RUN fc-cache -fv

then i try this but without success:

string fonte = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Fonte", "Segoe UI.ttf");
Stimulsoft.Base.StiFontCollection.AddFontFile(fonte);
Stimulsoft.Drawing.Graphics.GraphicsEngine = Stimulsoft.Drawing.GraphicsEngine.ImageSharp;
Attachments
Sem título.png
Sem título.png (40.71 KiB) Viewed 3473 times
Lech Kulikowski
Posts: 6664
Joined: Tue Mar 20, 2018 5:34 am

Re: Issue with Exporting Report to PDF in a Linux Docker

Post by Lech Kulikowski »

Hello,

What product and version are you use?

Thank you.
pexebez230
Posts: 7
Joined: Wed May 08, 2024 5:53 am

Re: Issue with Exporting Report to PDF in a Linux Docker

Post by pexebez230 »

Stimulsoft.Reports.Web.NetCore 2024.3.2
Lech Kulikowski
Posts: 6664
Joined: Tue Mar 20, 2018 5:34 am

Re: Issue with Exporting Report to PDF in a Linux Docker

Post by Lech Kulikowski »

Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.
pexebez230
Posts: 7
Joined: Wed May 08, 2024 5:53 am

Re: Issue with Exporting Report to PDF in a Linux Docker

Post by pexebez230 »

my file
Attachments
RankingVendas.mrt
(32.31 KiB) Downloaded 215 times
Max Shamanov
Posts: 850
Joined: Tue Sep 07, 2021 10:11 am

Re: Issue with Exporting Report to PDF in a Linux Docker

Post by Max Shamanov »

Hello,

We require more time to investigate the issue thoroughly.
We will let you know when we get any result.

Thank you.
Max Shamanov
Posts: 850
Joined: Tue Sep 07, 2021 10:11 am

Re: Issue with Exporting Report to PDF in a Linux Docker

Post by Max Shamanov »

Hello,

Unfortunately we have not been able to reproduce the problem.
Try adding a font to the report resources, and export to PDF to see if there is an error.
Can you also send us sample pdf files to analyse?

Thank you.
pexebez230
Posts: 7
Joined: Wed May 08, 2024 5:53 am

Re: Issue with Exporting Report to PDF in a Linux Docker

Post by pexebez230 »

i use this:

string fonte = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Fonte", "Segoe UI.ttf");
Stimulsoft.Base.StiFontCollection.AddFontFile(fonte);
Stimulsoft.Drawing.Graphics.GraphicsEngine = Stimulsoft.Drawing.GraphicsEngine.ImageSharp;
// Criar o relatório
var report = new StiReport();
string reportPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Relatorios", "RankingVendas.mrt");

report.Load(reportPath);

but no sucess.
Attachments
3f2ddf40-2a8a-4596-ab61-4ee0df31a851.pdf
(33.76 KiB) Downloaded 175 times
Max Shamanov
Posts: 850
Joined: Tue Sep 07, 2021 10:11 am

Re: Issue with Exporting Report to PDF in a Linux Docker

Post by Max Shamanov »

Hello,

Please send us your request with a detailed description on support@stimulsoft.com.

Thank you.
Post Reply