Skip to main content
Known Participant
November 3, 2022
Question

Script to Flowing table into the next textframe in InDesign

  • November 3, 2022
  • 5 replies
  • 541 views

I have created two textFrame which is threaded each otherinto this textframe I'll copy and paste table inside this textframe.. after that I'll add rows to that table.. and when there is no space in the textframe . The remaining rows needs to add into the next textframe.. is there any script to do this.. 

 

 

This topic has been closed for replies.

5 replies

m1b
Community Expert
Community Expert
November 4, 2022

Oh! so you want to flow a table from one anchored text frame to another? Hmm. That's tricky. A script could do it in various ways (I have two ideas immediately), but it wouldn't actually be threaded—it would be static and any text reflow would probably wreck it and require running the script again.

My best idea off the top of my head would be to set up the anchored text frames the desired sizes with script labels and then set up the table in threaded text frames the same heights as the anchored frames. Then a script could potentially position those non-anchored text frames exactly over the anchored text frames. They would look perfect, but wouldn't reflow until the script was re-run.

- Mark

Robert at ID-Tasker
Legend
November 3, 2022

[...] sorry, should have checked pictures first. 

m1b
Community Expert
Community Expert
November 3, 2022

In my experience table rows do naturally flow to the next threaded text frame. Note that a single row won't split between text frames in Indesign 18. Maybe I have @brian_p_dts's setting set. - Mark

brian_p_dts
Community Expert
Community Expert
November 3, 2022

Look into setting the table's text frames as Primary Text Frames on a master page and enable Smart Text Reflow under your preferences. 

Community Expert
November 3, 2022

Is there a reason the table is in another text frame inside the text frame?

Table can be placed as a text item within a single text frame. 

 

I'm not 100% sure what you're asking here - maybe some more info on the workflow... 😄

Robert at ID-Tasker
Legend
November 3, 2022

Exactly - why table is inside the TextFrame as AnchoredObject ?

 

This won't work - it won't reflow. You can't have multiple TextFrames linked together as AnchoredObjects in another Story.