From: Grzegorz Zych on
Hi

I need to insert some HTML-formatted text into a word document. I save the
HTML as a file and then use InsertFile to get it done.
It works great, except when I run into a table that is too big (too many
rows) to fit on one page. When that happens the table is cut short upon
reaching the end of the page, rather than continuing on the following page.

Is there some additional option I'm missing, or is it simply impossible?

Below is my file inserting code:


object _start = 0;
object _end = 0;
object ConfirmConversions = false;
object Link = false;
object Attachment = false;
object missing = System.Type.Missing;

Word.Range _range1 = pDoc.Range(ref _start, ref _end);
_range1.InsertFile(_fileName, ref missing, ref ConfirmConversions, ref Link,
ref Attachment);