I'm working on a word automation project and having trouble on the format of the inserted text from a rich text box
I have successfully replace the field in my template using the following code:
- if (fieldName == "background")
-
{
-
-
myMergeField.Select();
-
-
oWord.Selection.TypeText(rtbBackground.Text);
-
-
}
The field in my template is formatted to have double spacing, left aligned and should have .5" indentation. My problem now is, when i inserted 3 paragraphs from the rich text box, the first paragraph have the right format in the generated document but for the other paragraphs inserted, they are not indented properly they're just left aligned. I'm stuck with this problem please help me. Thank you