This is a migrated thread and some comments may be shown as answers.

reportviewer winforms telerik is compatible with Linux?

3 Answers 184 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Josue
Top achievements
Rank 1
Veteran
Josue asked on 05 May 2020, 02:47 PM

I am including an application with WinForms and .net core, at the same time I want to include telerik reports showing them with ReportViewver in Winforms, This application I am publishing and I run it in Linux and mono, The application opens but at the moment of generating the report ReportViewver indicates the following error:

Gdi32.dll assembly: <unknown assembly> type: <unknown type> member: (null)

3 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 08 May 2020, 09:45 AM

Hi Josue,

From the error, it seems that the libgdiplus is not installed. You can check Using Telerik Reporting in Applications on Linux Platform section.

Note that we haven't tested such a scenario and we cannot guarantee that it will work.

Regards,
Neli
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Josue
Top achievements
Rank 1
Veteran
answered on 08 May 2020, 12:59 PM

Thanks for your reply. I have this libgdiplus and libc6-dev library installed on my ubuntu 18.04 linux distribution. I realized the error was because I was targeting the .net framweork telerik.reporting and telerik.reportviewver.winforms libraries. Now I am pointing to the correct libraries for .net Core and .net standard and the error that appears to me is the following:

Unhandled Exception:
System.TypeLoadException: Could not set up parent class, due to: Could not load type of field 'Telerik.ReportViewer.WinForms.ReportViewerBase:printerSettings' (32) due to: Could not load file or assembly 'System.Drawing.Common, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. assembly:/PATH/Telerik.ReportViewer.WinForms.dll type:ReportViewerBase member:(null)

0
Neli
Telerik team
answered on 13 May 2020, 05:45 AM

Hi Josue,

You can test this approach or another from Can't use System.Drawing.Common in microsoft/dotnet:runtime Stack Overflow thread. 

Regards,
Neli
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Josue
Top achievements
Rank 1
Veteran
Answers by
Neli
Telerik team
Josue
Top achievements
Rank 1
Veteran
Share this question
or