web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

SSRS Report – Fixed Body Height Table with Dynamic Row Height – Best Approach?

(0) ShareShare
ReportReport
Posted on by 18
Hi Developer,
 
I'm working on a print report in D365FO that requires a fixed total body/table height per page, but with rows that grow dynamically based on content length.
 
The requirement:
- The table body has a fixed total height (e.g., enough space for ~10 lines)
- Each row height is dynamic — it wraps and grows if the text is long
- The remaining space after all data rows must be filled with blank rows so the table body always reaches the fixed height
- All rows must be tight/compact with no extra gaps between them
 
What I've tried:
The only workable approach I found so far:
- CanGrow = false on data rows
- Inject shadow/dummy records via DP preprocessing to pad up to a fixed row count
 
Problems:
1. Gap inconsistency — When real rows grow due to long text, the total height of real rows + dummy rows often exceeds or doesn't exactly match the fixed body height, causing visible spacing gaps or page overflow
2. Can't predict row height at preprocessing time — The actual rendered height of a row depends on font, column width, and text length, which is only known at render time (not at DP/X++ level)
3. Dummy row height miscalculation — If real rows consume more vertical space due to wrapping, the dummy rows need to shrink accordingly, but SSRS has no native mechanism for this
 
Core challenge:
SSRS does not provide a way to make the remaining blank rows dynamically absorb the leftover space after variable-height data rows. The renderer calculates row heights independently.
 
My questions:
1. Is there any SSRS technique (expressions, rectangle containers, sub-reports, custom sizing) that allows the padding/blank rows to auto-fill remaining body space after dynamic-height data rows?
2. Has anyone handled this with a custom RDL rendering approach or post-processing?
3. Would switching to a Word template merge (via Document Management in D365FO) be a more reliable solution for strict layout fidelity like this?
4. Any experience with third-party report engines (e.g., FastReport.NET embedded in D365FO, or generating PDF directly from X++) that handle this kind of layout better than SSRS?
 
Thanks in advance!
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    239,253 Most Valuable Professional on at
    I would challenge the requirement. To me, this sounds like someone's arbitrary idea about the look of the report, not the only possible way how to solve the actual business problem. Do you think otherwise?
     
    What might help you rejecting is if you find cases that won't work with it, e.g. when the data can't fit the fixed total height.
     
    I'm not saying that it would help with this design (I don't know), but I'm surprised that you're considering third-party report engines etc. but not paginated reports in Power BI.
  • AB-28110123-0 Profile Picture
    18 on at
    I’ve also been wondering about Power BI, is it commonly used for daily documents (invoices, packing slips, etc.)? I only knew it was used for analytical reports.
     
    As for business process problem-solving, I’ve already discussed this with the client’s IT manager, but since his background is in web development, he’s not open to ERP systems that are too rigid. Since the existing report was like that at the time, he wondered why a Microsoft-class ERP system couldn’t meet the requirements

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 688

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 524 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 301

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans