Issue with Exporting Report to PDF in a Linux Docker
-
- Posts: 7
- Joined: Wed May 08, 2024 5:53 am
Issue with Exporting Report to PDF in a Linux Docker
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;
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 (40.71 KiB) Viewed 3473 times
-
- Posts: 6664
- Joined: Tue Mar 20, 2018 5:34 am
Re: Issue with Exporting Report to PDF in a Linux Docker
Hello,
What product and version are you use?
Thank you.
What product and version are you use?
Thank you.
-
- Posts: 7
- Joined: Wed May 08, 2024 5:53 am
Re: Issue with Exporting Report to PDF in a Linux Docker
Stimulsoft.Reports.Web.NetCore 2024.3.2
-
- Posts: 6664
- Joined: Tue Mar 20, 2018 5:34 am
Re: Issue with Exporting Report to PDF in a Linux Docker
Hello,
Please send us a sample project that reproduces the issue for analysis.
Thank you.
Please send us a sample project that reproduces the issue for analysis.
Thank you.
-
- Posts: 7
- Joined: Wed May 08, 2024 5:53 am
Re: Issue with Exporting Report to PDF in a Linux Docker
my file
- Attachments
-
- RankingVendas.mrt
- (32.31 KiB) Downloaded 215 times
-
- Posts: 850
- Joined: Tue Sep 07, 2021 10:11 am
Re: Issue with Exporting Report to PDF in a Linux Docker
Hello,
We require more time to investigate the issue thoroughly.
We will let you know when we get any result.
Thank you.
We require more time to investigate the issue thoroughly.
We will let you know when we get any result.
Thank you.
-
- Posts: 850
- Joined: Tue Sep 07, 2021 10:11 am
Re: Issue with Exporting Report to PDF in a Linux Docker
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.
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.
-
- Posts: 7
- Joined: Wed May 08, 2024 5:53 am
Re: Issue with Exporting Report to PDF in a Linux Docker
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.
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
-
- Posts: 850
- Joined: Tue Sep 07, 2021 10:11 am
Re: Issue with Exporting Report to PDF in a Linux Docker
Hello,
Please send us your request with a detailed description on support@stimulsoft.com.
Thank you.
Please send us your request with a detailed description on support@stimulsoft.com.
Thank you.