Before you say this has already be answered it really has not anywhere i have found. This is easy to do with a bunch of text, but not easy to do with tables. You can make rows stay on one page, but not the whole table.
To even do this in word you have to select all but the last row of the table and then use keep with next. I can do this with the following code
foreach (Word.Table tb in objApp.ActiveDocument.Tables)
{
Range rng = objDoc.Range(tb.Rows[1].Range.Start, tb.Rows[tb.Rows.Count - 1].Range.End);
rng.Select();
}
Now i have no idea how to apply a paragraph style to keep with next to each one of these. You cannot roll though every table in a paragraph, although each of mine contain only one table. So i am lost.
Thanks to anyone that can help