Report Text being cut off after updating project to .NET 7

Posted by: mtag on 5 January 2024, 7:45 am EST

    • Post Options:
    • Link

    Posted 5 January 2024, 7:45 am EST - Updated 5 January 2024, 7:51 am EST

    I finally updated my ActiveReports project from .NET 4.7.2 to .NET 7. There are now many cases where the layout shown in the WYSIWYG designer doesn’t match how the report exports. Most commonly, labels will be slightly lower or higher than they appear in the designer, and the text will often be cut off vertically (as if the label isn’t tall enough).

    I’m wondering if there’s something I can do without having to touch every (200+) report to fix this issue.

    Attached image shows a PDF exported from the .NET 4.72 Framework on the top, and the identical report exported from .NET 7 on the bottom. Notice on the right side how the text is cut off, and the text in the center is a bit lower (with descending letters cut off by a few pixels) in the new project as well.

  • Posted 7 January 2024, 3:49 pm EST

    Hi Matt,

    ActiveReports 15 and above uses Cross-Platform Compatibility Mode to support .NET Core. You must be observing this unexpected behavior due to the same. I’d suggest you refer to either of these suggestions:

    • Set the Label’s ShrinkToFit property to True. It will decrease the size of the font until it fits in the Label
    • Replace the Label control with a TextBox and set it’s CanGrow property to True so that the Textbox automatically expands as per the font size.

    If the issue still persists at your end, please try sharing with us a sample report replicating the same so that we can investigate further. Also, let us know the exact version of ActiveReports in which you are facing the issue.

  • Posted 7 January 2024, 11:53 pm EST

    thanks for the ideas - I took a closer look and the items on the right side had some funky Padding settings, I cleared those and it rendered much better

  • Posted 8 January 2024, 4:01 pm EST

    Hi Matt,

    We are glad that your issue has been resolved. Feel free to get back to us in case of any other issues.

Need extra support?

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

Learn More

Forum Channels