Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • prevent pagebreak in table putdocx

    Hi
    I making summary tables in putdocx looping through 100+ cities. The problem is that pagebreaks occur in the middle of tables. It is not an option to have one table on each page. "nosplit" seems to work only on rows.

  • #2
    The putdocx commands do not implement the full set of Microsoft Word functionality, apparently, so "keep lines together" does not seem to be an option. My guess is that you are going to have to figure out how many tables can fit on a page and have your code insert a page break manually when the next table would not completely fit.

    Comment


    • #3
      Thanks for your reply. I agree. I think that's the only option here.

      Comment


      • #4
        Solved it by inserting a counter, specified to number of tables on each page:

        if mod(`i', 2)==1 {
        putdocx pagebreak
        }

        Comment

        Working...
        X