I am working on generating a PDF report that includes a header, body, and footer sections using Scriptcase 9.11.0011. The body section should dynamically adjust its height based on the number of lines. The input data is coming from a master-detail form.
However, I am encountering a problem where the body section is static and does not grow to accommodate additional lines. The printer I am using is an 80mm receipt printer with a print area of 72 x 140 mm.
PDF Report Configuration:
- Header: 66 units
- Footer: 30 units
- Body: Should grow by 5 units per line (which I believe is appropriate)
Currently, the body section can only display up to 5 detail records. If there are more than 5 lines, the additional lines overflow into the footer section, but the body does not adjust in size.
My expectation:
- The body should expand dynamically based on the number of lines, with 5 units allocated per line.
- The footer should remain at a fixed height of 30 units.
- I would like to avoid any overflow into the footer.
Can anyone suggest how to resolve this issue? A sample or video tutorial would be extremely helpful.
Thank you in advance!