Pagebreak after specified HEIGHT

Posted by: aykutcanturk on 4 August 2017, 3:19 pm EST

  • Posted 4 August 2017, 3:19 pm EST

    I know howto put pagebreak after, lets say, 20 lines. What I want to do is put a page break after detail section length for a specified paper size is filled by records.
    Lets say each line takes 30 pixels. for an A4 paper, after extracting header and footer parts, 600 pixels left for details section. this makes 20 regular lines. but if one of records have long contect and the field allowd growing, one of the lines takes 60 pixels. At this point we should have 19 lines instead of 20. That is the problem. I want to say "fill details section with records, if total height of these lines bigger than 600 pixel (or X cm, or Y twip, whatever) put a page break.
    any solutions please ?
  • Replied 4 August 2017, 3:19 pm EST

    Depending on your requirements, one workaround is to increase the size of the page footer to cause a page break at a specific height.



    I've attached a sample project to demonstrate this approach, let me know if you have any questions about it.







    Thanks,

    Jon


    2011/02/MaxHeightPerPage.zip
Need extra support?

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

Learn More

Forum Channels