Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Keeping heading & data on same page  (Read 11086 times)
Paul M.
Posts: 31


« on: October 20, 2017, 01:32:20 pm »

Hi,

Is there any way to say in the report writer if there isn’t enough room left on the page for my header and one or two lines of data then start the header the next page.

I have a report and I print headings after a change in transaction no. The header box sometimes starts at the bottom on one page and the data on the next so I just want to keep them together (see attached heading1).

Any suggestions?

Thanks.


* Heading1.jpg (33.53 KB, 1317x348 - viewed 2341 times.)

* Report Structure.jpg (71.48 KB, 369x301 - viewed 2358 times.)
Alex G.
Four Js
Posts: 155


« Reply #1 on: October 23, 2017, 10:29:23 am »

Hi Paul,

a way to avoid orphaned headers is to ensure that the parent box is big enough to contain the header and at least one row.
You can achieve this by setting the properties y-size to the expression "rest>3*length("M")?rest:max" and Y-Size-Adjustment="shrinkToChildren".
The "3*length("M")" expression makes sure that the space left in the parent ("rest") is high enough for three lines using the current font.

Kind regards,

Alex
Paul M.
Posts: 31


« Reply #2 on: October 25, 2017, 08:20:32 am »

Alex,

Thank you. That is exactly what I wanted to know how to do and I now have no more orphaned headings.
Regards,

Paul.
Alex G.
Four Js
Posts: 155


« Reply #3 on: October 25, 2017, 11:19:13 am »

Thanks for getting back. Glad that I could help.
Regards,

Alex
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines