Page 1 of 1
Issue with Exporting Report to PDF in a Linux Docker
Posted: Thu Jul 25, 2024 11:48 pm
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;
Re: Issue with Exporting Report to PDF in a Linux Docker
Posted: Fri Jul 26, 2024 1:39 pm
by Lech Kulikowski
Hello,
What product and version are you use?
Thank you.
Re: Issue with Exporting Report to PDF in a Linux Docker
Posted: Sat Jul 27, 2024 2:17 pm
by pexebez230
Stimulsoft.Reports.Web.NetCore 2024.3.2
Re: Issue with Exporting Report to PDF in a Linux Docker
Posted: Sun Jul 28, 2024 6:42 pm
by Lech Kulikowski
Hello,
Please send us a sample project that reproduces the issue for analysis.
Thank you.
Re: Issue with Exporting Report to PDF in a Linux Docker
Posted: Tue Jul 30, 2024 12:51 pm
by pexebez230
my file
Re: Issue with Exporting Report to PDF in a Linux Docker
Posted: Wed Jul 31, 2024 10:01 am
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.
Re: Issue with Exporting Report to PDF in a Linux Docker
Posted: Fri Aug 02, 2024 9:11 am
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.
Re: Issue with Exporting Report to PDF in a Linux Docker
Posted: Mon Aug 05, 2024 9:38 pm
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.
Re: Issue with Exporting Report to PDF in a Linux Docker
Posted: Tue Aug 06, 2024 6:40 am
by Max Shamanov
Hello,
Please send us your request with a detailed description on
support@stimulsoft.com.
Thank you.