Posted 28 February 2025, 12:21 pm EST
Hi,
I found the following statements:
"
The default value for the NET Framework is CompatibilityModes.GDI, while for other frameworks it is CompatibilityModes.CrossPlatform. The CompatibilityModes.GDI parameter is only compatible with the Windows operating system and is not suitable for ASP.NET Core. The CompatibilityModes.CrossPlatform setting is designed for cross-platform rendering.
"
"
You may manually add the following code to set the CompatibilityMode to GDI in .NET Core in ActiveReports 16:
SectionReport1 rpt = new SectionReport1();
rpt.CompatibilityMode = GrapeCity.ActiveReports.Document.CompatibilityModes.GDI;
Although this code will not help in the latest version, i.e., ActiveReports 17, as the GDI Compatibility Mode is not supported with .NET Core in the latest version.
"
My goal is to create a library which:
a) Merges a SectionReport from the given RPX with the given DataSource. (Later the report is exported to PDF).
b) Is compiled with .NET 8.0 in Rest Api projeject, using AR v18 and VS2022.
c) Handles rich text correctly via RichTextBox control.
d) When library is executed in Windows environment, then I expect to somehow use CompatibilityModes.GDI and RichTextBox merging provided RTF content (from DataSource).
e) When library is executed in Linux environment, then I expect to somehow use CompatibilityModes.CrossPlatform and RichTextBox merging provided HTML content (from DataSource).
Is that achievable (I am concerned about d) and e) point the most)?
Thank you.