Answer the question
In order to leave comments, you need to log in
How to add empty line before table in doc file in C#?
I have a word document that contains a table. It is required to insert an empty row before this table. Tried:
Word.Range prevParagraph = tbl.Range.Previous(Word.WdUnits.wdParagraph, 1);
prevParagraph.InsertParagraphAfter();
Word.Range prevParagraph = tbl.Range.Previous(Word.WdUnits.wdParagraph, 1);
prevParagraph.Text += "\r\n";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question