Reporting issues in Linux

1 Answer 95 Views
General Discussions Rendering Styling Table
Tursunkhuja
Top achievements
Rank 2
Iron
Iron
Veteran
Tursunkhuja asked on 26 Jan 2022, 08:00 AM | edited on 26 Jan 2022, 08:02 AM

Hi everyone,

We have several problems when we run reports in Linux environment.

1. The main problem is related Style and ExternalStyleSheets. Look at the picture below to see differences: 

In windows environment (pic#1) report header part (report name, company name) shows correctly and style & external style sheets applied. BUT, in Linux environment (pic#2) it shows incorrectly, style is not applied. There are issues with text position (aligned to left), font size and other font properties.

2. Another issue is in Linux some texts are wrapped:

3. We also cannot create table programmatically. Since when we create a table programmatically, we trying to set properties like FontSize.

 

See attached file to compare 2 pdf files of sample report which were exported in Windows and Linux.  

We are planning to use our app in Linux and our project based on .NET6. How do you suggest to avoid those issues in Linux?

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 31 Jan 2022, 09:30 AM

Hello Tursunkhuja,

Generally, the ExternalStyleSheets are applied also when rendering under a Linux environment. Note that the file paths in Linux are case-sensitive. This is the most frequent reason for external style sheets not being found in Linux.

I tested locally under a Linux Docker and the sample report was rendered with the external styles applied - see the attached PDF files "SampleReport-Linux.pdf" and "SampleReport-LinuxNoStyles.pdf" for comparison. Note that when there are fonts that cannot be found in Linux they may be substituted. If so, the relevant information will be logged in the Stack Trace - see Troubleshooting reporting implementation into ASP.NET Core application.

Indeed, the renderings are a bit different in Windows and Linux. The reason is the different GDI+ implementation that is used under the two environments. The "SampleReport-Windows.pdf" file in the attachments demonstrates the outcome when rendering in Windows.

Can you specify which Reporting version you use? I noticed that the TRDX report XML schema is "2021/2.0", which may be from R2 2021. Recently, we introduced some improvements regarding Linux rendering. For more details, you may check the feedback item A fundamental problem (and a way to resolve it) with PDF rendering on Linux (in fact, on any system), and the Release Notes for R3 2021 SP1 - Increased precision in text rendering on Linux and macOS platforms. Based on the file "SampleReport-Linux.pdf" in your attachments, I suspect that you use an older version.

Regarding the tables, it is not clear to me why you cannot create them programmatically. You may take a look at the KB How to modify table with preset styles and width dynamically. Note that you may control the font/styles/size also with Bindings. Generally, the table cell width should correspond to the entire column width.

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
General Discussions Rendering Styling Table
Asked by
Tursunkhuja
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Todor
Telerik team
Share this question
or