Book a Demo

Author Topic: Prevent table splitted when there is a table between two pages  (Read 6414 times)

juan.drn

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
I need prevent a table will be splitted when content cannot end in the page and need to send to the next page, I've insert page break, but each table is showed in one page, and that is incorrect too, I want prevent split a table and I wan't prevent that exist one table by page.

Thanks

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Prevent table splitted when there is a table between two pages
« Reply #1 on: March 27, 2018, 07:40:51 am »
I need prevent a table will be splitted when content cannot end in the page and need to send to the next page, I've insert page break, but each table is showed in one page, and that is incorrect too, I want prevent split a table and I wan't prevent that exist one table by page.

This is not something you can achieve in a word processor so I very much doubt you can force EA to do it in the documentation generation.  Generally if you want a table to be one page only you change the font size until you shrink it enough.  That or generate an image that you scale to one page.

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Prevent table splitted when there is a table between two pages
« Reply #2 on: March 27, 2018, 11:29:11 am »
In the template you need to set the paragraph with orphan control and keep with next para to keep the table on one page.
Happy to help
:)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Prevent table splitted when there is a table between two pages
« Reply #3 on: March 27, 2018, 03:02:44 pm »
I think you can set that in the properties of the table in Word, but not in the template itself.

I remember writing a VBA macro to change that setting in Word after generating a document.

Geert

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Prevent table splitted when there is a table between two pages
« Reply #4 on: March 28, 2018, 12:31:03 pm »
No need to write VBA as  you can do it in the template. Its actually a property of paragraph not table.
So from EA V13. Open the template you can access it via
Tab > Edit> Paragraph>Keep with next

Alternatively export to docx change para settings in MS word then import the template again.

Both techniques work for me.

Happy to help
:)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Prevent table splitted when there is a table between two pages
« Reply #5 on: March 28, 2018, 03:25:38 pm »
You might be right.

I think there was also a setting to prevent rows to be splitted across pages.
That must have been the one we couldn't change in the EA template.

Geert