D
Devhead
i am trying to insert a string into a table cell. i am getting some extra
characters like escape characters and the last character in the string i am
trying to insert. weird. i agree. for example if my string(s) is Chris
Burns, if i put a watch on tc.Range.Text i am seeing "Chris Burnss\r\a" and
it shows up in the table cell as "Chris Burnss". notice the extra character
at the end of the name. I want to clear out the table cell, remove all
characters, then insert the string s into the cell position. what am i doing
wrong here? thanks.
here is my code:
//table cell text/field placement
private static void StringtoCell(string s, Word.Cell tc)
{
tc.Range.Text = s;
}
characters like escape characters and the last character in the string i am
trying to insert. weird. i agree. for example if my string(s) is Chris
Burns, if i put a watch on tc.Range.Text i am seeing "Chris Burnss\r\a" and
it shows up in the table cell as "Chris Burnss". notice the extra character
at the end of the name. I want to clear out the table cell, remove all
characters, then insert the string s into the cell position. what am i doing
wrong here? thanks.
here is my code:
//table cell text/field placement
private static void StringtoCell(string s, Word.Cell tc)
{
tc.Range.Text = s;
}