problems with replacetext, inserttext and row.removeat

I'm having a few problems and wondering if it is a doc formatting problem on my side or your DocX code - which is great, by the way.

With both Paragraph.InsertText and Paragraph.ReplaceText, the new text is always indented, like it's a paragraph contained within a paragraph, or as if the text is being put in as a child of the paragraph, rather than a sibling. I've tried all sorts
of ways of doing this but alway have the same problem. I also get this when the paragraph is in a table cell.

Also, I can't remove rows in a table, the RemoveAt and RemoveRange do not work for me. I don't get an error, but the rows are still there when I open the saved docx.

For your convenience, please see
‘Reporting Requirements,’ enclosed with this letter, for further instructions on preparing these reports.
Please use the grant reference number above in all reports and correspondence.

Two other things. I can now delete the row in the table by using the Table level RemoveRow(), the row level method didn't work for me, but that's OK now. The other problem I get is that the text index
on the LastIndexOf, when I do the paragraph insert actually is inserting it in the middle of the Paragraph 2. line. The problem is that in the table cell and the inserted paragraph are both indented.

unfortunately codeplex does not have an option for uploading attachments, you will have to email the document to me at
coffey.cathal@gmail.com.

>> I can now delete the row in the table by using the Table level RemoveRow(),

>> the row level method didn't work for me, but that's OK

The newest version of DocX v1.0.0.8 only contains a Table.RemoveRow(index), there is no Row.Remove().

>> The other problem I get is that the text index on the LastIndexOf, when I do

>> the paragraph insert actually is inserting it in the middle of the Paragraph 2.

>> line.

I do not understand what you mean, can you please rephrase this question? Inserting text using an index is currently not as reliable as I would like it to be. If you are trying to add text to the end of a Paragraph please use Paragraph.Append() or Paragraph.AppendLine()

using (DocX document = DocX.Load("Test.docx"))

{

Paragraph p1 = document.Paragraphs[0];

p1.AppendLine("Hello World");

document.Save();

}

If you are trying to add a new paragraph after another paragraph use Paragraph.InsertParagraphAfterSelf()