Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    New Lounger
    Join Date
    Jan 2001
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Make Table Appear on Next Page

    Greetings, all. I'd like to have a table that that appears at the top of the page following its reference, with text flowing as necessary, so there's no blank areas. Example: if the table is introduced in a paragraph in the middle of page 4, the text continues to the bottome of page 4, then the table appears at the top of page 5. If the paragraph moves to the bottom of page 4, the table does not move, but text flows past it. If the paragraph moves to the top of page 5, then the table gets bumped to the top of page 6.

    I've tried text boxes, but can't make it work. One additional complexity: the table is landscape. I'm using Word97, SR-2. TIA.

  2. #2
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    New Zealand
    Posts
    295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    I'm not sure whether this answer does exactly what you want or not. Create a new style called Table and change the paragraph properties to page break before (Format Style, New, Modify, Format, Paragraph, Line and Page Breaks Tab)

    Use that style in your table and it will always sit at the top of the page.

    Text will not wrap past it though which i think is what you want. If the typing goes past the bottom of the page before the table, it will jump another page. <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>

  3. #3
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    Hi dmhenry:

    Try <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=wrd&Number=7573&page=&view= &sb=&vc=1> this </A>thread.

  4. #4
    New Lounger
    Join Date
    Jan 2001
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    Thanks, MikeB. That's a nice solution to part of my problem...but you're right - it doesn't allow for text to flow as needed before and after the table. I really want to avoid hard-coding the page breaks. I'll keep your suggestion in mind for other applications, though.

    Dan

  5. #5
    New Lounger
    Join Date
    Jan 2001
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    Phil, thanks for the pointer. I'd searched before my post, but couldn't find anything relevant. Unfortunately, those solutions all seem to involve hard-coding the position of the object using section breaks (mostly to deal with the columns issue, which I don't have to face, thankfully).

    Perhaps Word is incapable of this level of layout control. Where this functionality belongs is in the frame properties, vertical position. I'd like to set the position as "Next Page" relative to "Paragraph". Then with text wrapping set on, I'd have my solution.

    Dan

  6. #6
    New Lounger
    Join Date
    Jan 2001
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    Thanks for the macro solution, Chris. I plan to explore your 'under-the-hood' templates later. Unfortunately, the problem for me is that I DON'T want to keep text together. I need the distance from the anchor paragraph to the table to be flexible, so that the table always appears on the following page. But I also need text to flow around it, so there's no blank areas on the page before the table.

    Dan

  7. #7
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    Here's the function I use, taken from my UnderTheHood template. You can call if from a macro as:

    call NoSplit(selection.tables(1))



    <pre>Public Function NoSplit(rngTbl As Range)
    ' Procedure: cmd_NoSplit
    ' Description: Keep all lines of a table together with the preceding paragraph.
    ' By: Chris Greaves Inc.
    ' Inputs: None.
    ' Returns: None.
    ' Assumes: None.
    ' Side Effects: Page layout may change.
    ' Tested: By a call from the user.
    ' We want to mark "Keep With next" for the paragraph of text preceding the table,
    ' and all rows but the last of the table.
    Dim rngKeep As Range ' Range object used to locate the necessary text.
    If rngTbl.Information(wdWithInTable) Then
    ' more than one row, so look for the penultimate.
    If rngTbl.Tables(1).Rows.Count > 1 Then
    Set rngKeep = rngTbl.Tables(1).Rows(rngTbl.Tables(1).Rows.Count - 1).Range
    Dim lngEnd As Long
    lngEnd = rngKeep.End
    Set rngKeep = rngTbl.Tables(1).Rows(1).Range
    Else ' only one row, so deal with the first
    Set rngKeep = rngTbl.Tables(1).Rows(1).Range
    ' make the end to be the end of the paragraph of text.
    lngEnd = rngKeep.Start - 1
    End If
    Dim lngStart As Long
    ' go back one character into the preceding non-table paragraph.
    rngKeep.Start = rngKeep.Start - 1
    rngKeep.End = lngEnd
    rngKeep.ParagraphFormat.KeepWithNext = True
    Else
    Call errMustBeInTable
    End If
    End Function
    </pre>


  8. #8
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    It seems to me that another way of stating your problem would be :

    If the table cannot fit entirely on the same page as the first character of its text paragraph, then the table must appear on the following page. As much text as possible must follow the text paragraph until the start of the next page, at which time text must continue AFTER the table?

  9. #9
    New Lounger
    Join Date
    Jan 2001
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    Yes, you've got it. In my case, I'm dealing with full-size (landscape) tables, so they should always be on their own page. But you've stated the problem more generally.

    The idea is that the text following the text paragraph needs to automatically adjust to fit around the table - always fill up the page before, and then continue after.

    Dan

  10. #10
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Pune
    Posts
    310
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    A very effective way of inserting a full-page sized landscape table which interrupts a paragraph which flows on after the table as well, is to implement the following steps in strict order (though it looks complex, most of it can be automated using macros, but I haven't got around to writing a macro to do this; someone on this Lounge will do this, I hope):

    (a) insert a Section Break-Next Page after the last character on the page after which the landscape table will appear,
    ([img]/forums/images/smilies/cool.gif[/img] View Header-Footer and click on "Same as Previous" icon on the Header/Footer toolbar for all the Headers and Footers in that Section (max 6 : First, Odd and Even Header and Footer) so that any setup changes to this section do not affect preceding sections.
    ©Insert another Section Break-Next Page after this one, and do the same.

    At the end of this, you will have a blank section which interrupts the paragraph flow.

    (d) move between the two Section Breaks (ie, on to this blank page) and change the Page Setup to Landscape mode.
    (e) place the landscape Table in a frame (which is autosized for Height to ensure that no text remains undisplayed). Jumping of text and floats is avoided because you are working in a sepaarate section.

    If you have the table continuing across more than one page, I recommend Linked text boxes instead of frames to enclose the Table. This will allow the entire table to retain its identity, and not get broken into 2 or more separate tables.

  11. #11
    3 Star Lounger
    Join Date
    Mar 2001
    Location
    Pune
    Posts
    310
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    Actually, the rule that Word seems to follow implicitly is that any float needs either a beginning or end of a paragraph to occur on the same page, to allow it to anchor. So if the table pulls text of a paragraph to the next page, it is because it is anchored to a paragraph which begins on the earlier page.

    To avoid that, simply drag the anchor to the beginning of the next paragraph on that page (or place the cursor at the beginning of the next paragraph and paste the table). The text pulled on to the next page should get restored.

    However, please ensure that the paragraph is nto so large that it continues on to the next (ie, the third) page, because again that would leave Word with no para to anchor the Table to, which breaks the implicit rule stated above. In that case, you will usually get endless repagination (where the file becomes thousands of pages long). To avoid this, please ensure that you force a paragraph to end on the page on which you place a table.

  12. #12
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    Hi Rajesh:

    I recall you saying this in a previous post when someone had the problem. I have tried to duplicate it in Word 2000 SR-1a & can't (perhaps I should leave well enough alone).

    I created a 9 page document with one paragraph. Then on page 4, I put a drawing object & a text box. I could not find a way to get Word to repaginate erroneously.

    Could you list the steps that would cause this? (he says foolishly <img src=/S/grin.gif border=0 alt=grin width=15 height=15>).

    Thanks.

  13. #13
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Make Table Appear on Next Page

    Dan,

    You can do something like this with linked text boxes (apologies if this has already been discussed in this or the other thread referred to).
    It is possible to do, but it still is very inflexible.

    What you'd do is set up a sort of 'template' in a document first, where the document is made up of a number of textboxes, which are selectively linked or placed at the top of a new page, depending on whether they are for text or for table.

    The attached document is a very crude demo.

    Gary
    Attached Files Attached Files

  14. #14
    New Lounger
    Join Date
    Jan 2001
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    Rajesh - thanks for your response. The problem is with step (a), because I don't know (don't want to specify in advance) what the last letter of the page is going to be. I want that to be flexible.

    After getting all the expert advice from this forum, I've decided to throw in the towel and get used to the fact that Word can't do what I want.

    Thanks for your help
    Dan

  15. #15
    New Lounger
    Join Date
    Jan 2001
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make Table Appear on Next Page

    Gary, this is a nice solution. I'm playing with your attachment now (trying to find out how to link them, actually). Unfortunately, it requires me to specify the pages where the tables are supposed to be. I want them to move as I insert text.

    As I said earlier, I'm convinced now that Word cannot do what I want.

    Thanks anyway,
    Dan

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •