Section report RTF not rendering in CrossPlatform Compatibility mode

Posted by: todd.schellinger on 13 January 2023, 4:03 am EST

    • Post Options:
    • Link

    Posted 13 January 2023, 4:03 am EST

    I’ve found that when there is an RTF control on a section report, and attempt to render this through a .net core project, it does not render (it’s blank).

    Looking at some doc, it seems that there is a switch that should be used for that on the section report:

    this.CompatibilityMode = GrapeCity.ActiveReports.Document.CompatibilityModes.CrossPlatform;


    this.CompatibilityMode = GrapeCity.ActiveReports.Document.CompatibilityModes.GDI;

    When using the CrossPlatform, whether it is in a Framework project or core project, the RTF controls do not render. This can be demonstrated by using the example provided in this other post, and inserting that CrossPlatform line in the designer:

    FYI – I am using AR 16.1.2, VS2022, .Net Core 6.0 and a framework project to do preview support in framework 4.7.2.

    Is there a workaround for this, or is this something that has been discovered?


  • Posted 15 January 2023, 10:11 pm EST - Updated 15 February 2023, 1:35 am EST

    Hi Todd,

    This is a known limitation in ActiveReports 16, when using CrossPlatform CompatabilityMode the RichTextBox renders only HTML content. Thus specifying RTF content to RichTextBox at runtime previews nothing, to learn more about the same please refer to RichTextBox

    However, specifying plain text or loading your RTF file through the designer converts them to HTML when loading into the RichTextBox control.

    As a workaround in CrossPlatform Compatability please add your RTF content between the body tags and assign it to the Html property of your RichTextBox. Please refer to the following line of code:

    richTextBox1.Html = "<html><body>mytext</body></html>";

    Please find attached a sample implementing the same.

    Apologies for the inconvenience.



  • Posted 16 January 2023, 7:25 am EST

    Thanks Anand, I missed that part of the docs.

    I’m able to get them to show up if I convert to html.

  • Posted 16 January 2023, 3:00 pm EST

    Hi Todd,

    We’re glad we were able to resolve your issue!



Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels