Z
zfeld
I am having a problem adding text to a cell in an existing table
it seems to be pre-appending my text to the current text as opposed to
overwriting which is what I need.
my code is in C#
cell = table.Cell(curRow, 1); // the first column
Word.Range cellRange = cell.Range; //cellrange =
cell.Range.Paragraphs.Item(1).Range; didn't either work
string dd = cellRange .Text; //dd - will show as "1\n\a" in the debugger
int currentBuilding = 5;
cellRange.Text = currentBuilding.ToString(); //replace the text with 5
dd = cellRange .Text; ////dd - will show as "51\n\a" in the debugger
it seems to be pre-appending my text to the current text as opposed to
overwriting which is what I need.
my code is in C#
cell = table.Cell(curRow, 1); // the first column
Word.Range cellRange = cell.Range; //cellrange =
cell.Range.Paragraphs.Item(1).Range; didn't either work
string dd = cellRange .Text; //dd - will show as "1\n\a" in the debugger
int currentBuilding = 5;
cellRange.Text = currentBuilding.ToString(); //replace the text with 5
dd = cellRange .Text; ////dd - will show as "51\n\a" in the debugger