Valentin Castravet
Work: Zander ERP Services
Blog: Dynamics 365 Business Central Insights
LinkedIn: www.linkedin.com/in/valentin-c-0500a247/
AI was used to create this answer
The issue you're facing with the address field positioning on an RDLC check is a common challenge when designing reports in Microsoft Dynamics 365 Business Central (BC). Here are some steps and tips to help you resolve the issue:
Check the Design Surface:
Open the RDLC layout in Visual Studio or the Report Builder.
Ensure that the address field is placed correctly in the design surface and that there are no overlapping elements.
Expand the Body Section:
If the address field is in the body section, expand the body section downward to create more space.
Right-click on the body section and select Insert Row Below to add more space.
Move the Address Field:
Drag the address field to the desired position at the bottom of the stub.
Ensure that the field is not constrained by other elements or containers.
Increase Stub Height:
If the stub height is too small, the address field may not have enough space to move down.
Adjust the height of the stub in the RDLC layout to provide more room for the address field.
Avoid Overlapping with the 2nd Stub:
Ensure that the increased height of the first stub does not interfere with the second stub.
Use the ruler or gridlines in the RDLC designer to align the stubs properly.
Adjust Margins:
Reduce the top and bottom margins of the stub to create more space for the address field.
Go to Report Properties > Margins and adjust the values.
Add Padding:
Add padding to the address field to ensure it is positioned correctly within its container.
Dynamic Positioning:
Use expressions to dynamically adjust the position of the address field based on the content.
For example, you can set the Top
property of the address field to a dynamic value that moves it down if certain conditions are met.
Parent Containers:
Ensure that the address field is not constrained by a parent container (e.g., a rectangle or list).
If necessary, move the address field outside of the container or adjust the container's size.
Text Box Properties:
Check the properties of the text box containing the address field. Ensure that the CanGrow
and CanShrink
properties are set appropriately.
Preview the Report:
Use the Preview feature in the RDLC designer to check if the address field is positioned correctly.
Make adjustments as needed based on the preview.
Print Test Copies:
Print test copies of the check to ensure that the address field appears in the correct position on the physical document.
Custom Logic:
If the RDLC layout adjustments are not sufficient, you can add custom logic in the AL code to dynamically adjust the address field's position or content before rendering the report.
Here’s an example of how you might adjust the address field in the RDLC layout:
Open the RDLC file in Visual Studio or Report Builder.
Locate the address field in the stub section.
Drag the address field to the bottom of the stub.
Adjust the height of the stub to ensure the address field has enough space.
Preview the report to verify the changes.
André Arnaud de Cal...
292,489
Super User 2025 Season 1
Martin Dráb
231,305
Most Valuable Professional
nmaenpaa
101,156