Locking size of a report

2 posts, 0 answers
  1. Jason
    Jason avatar
    16 posts
    Member since:
    Dec 2016

    Posted 18 Sep 2018 Link to this post

    Hello, we are (ab)using reports to design printable documents, and we're having an issue with printing multiple reports on a page.

    Normally, printing works fine, however when a certain field is long enough to create a new line, the size of the item gets increased, causing report items to get bumped to a new page. See attached image for the report item, which fits 6 to a 8.5x11 page in landscape mode.

    What I'd like to happen is that items near marker #2 expand to take up the space up till the grid at marker #1, whereas right now any new line in the items at marker #2 will simply cause the entire report to be longer. I've attached a second image showing the actual printed result. If the third item weren't a line longer, there would be 3 more items on that page.

  2. Todor
    Admin
    Todor avatar
    518 posts

    Posted 21 Sep 2018 Link to this post

    Hi Jason,

    We have answered the question in the support ticket you opened on the same topic. For the benefit of our community I will summarize the suggested approach also here :

    "You can place the report items that may grow due to larger content in a Panel, which CanShrink property is set to False (the default value).
    This way the Panel will always occupy the space till the grid at marker #1, and the report items will grow inside the Panel, without pushing the grid down. If the Panel cannot accommodate the content of its items it will grow and push the grid."

    Regards,
    Todor
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top