Avoid print just table header at bottom

Hello,

It is possible to avoid to print a table when there isn't enough place to print at least 1 data row ?
You'll here find a screenshot to illustrate my problem.
Thanks in advance.
Jonathan.

Comments

  • edited 2:27PM
    Any Ideas ?
    Thanks.
  • edited 2:27PM
    Hello,

    Use the header's property KeepWithData.
  • edited 2:27PM
    Hello Alex,

    I tried KeepWithData, but I still have the problem.
    I prepared you a sample modified from your demo in menu Table->Row Datasource
    Could you take a look to this example and see if I missed something
    Thanks a lot.
    Jonathan.
    AlexTZ wrote: »
    Hello,

    Use the header's property KeepWithData.
  • edited 2:27PM
    Hello,

    The keep mechanism is not working because the table object genegates own bands when printed. You may add the header to the table object and tell the header to keep with at least one data row.
  • edited 2:27PM
    Another way is to print a table using regular Data band with Text objects on it. In this case you may use the data header band with "KeepWithData" option.
  • edited 2:27PM
    So, if I understand, I need to add the Header directly as row to the table and

    tell the header to keep with at least one data row -> Please, I can't see how to do this, could you modify the simple sample I sent in my second message of this thread.
    Many thanks. Jonathan
    AlexTZ wrote: »
    Hello,

    The keep mechanism is not working because the table object genegates own bands when printed. You may add the header to the table object and tell the header to keep with at least one data row.
  • edited 2:27PM
    Here is an example attached. Note the Row1.KeepRows = 2; line in the script.
  • edited 2:27PM
    Many thanks, it works perfectly !
    Jonathan.
    AlexTZ wrote: »
    Here is an example attached. Note the Row1.KeepRows = 2; line in the script.

Leave a Comment