Character added to text frames


#1

Hi,
I’m using the following code to generate a powerpoint table, file attached.
In this example, dt_Stats is the data table and Table_Stats is the powerpoint table.
Why is the square character being added to the beginning of all the fields in the ppt?
Thanks,

Jon

int k = 1;

for (int i = 1; i < dt_Stats.Rows.Count; i++)
{

if (dt_Stats.RowsIdea [I].RowState != DataRowState.Deleted)
{
table_stats.AddRow();
for (int j = 0; j < dt_Stats.Columns.Count; j++)
{

table_stats.GetCell(j, k).TextFrame.Text = Convert.ToString(dt_Stats.RowsIdea [I].ItemArray[j]);
table_stats.GetCell(j, k).TextFrame.Paragraphs[0].Portions[0].FontHeight = 7;
table_stats.GetCell(j, k).TextFrame.MarginTop = 0;
table_stats.GetCell(j, k).TextFrame.MarginBottom = 0;
table_stats.SetRowHeight(k, 10);

}
k = k + 1;
}

}


#2

You should disable bullets which are enabled by default.


table_stats.GetCell(j, k).TextFrame.Text = Convert.ToString(dt_Stats.Rows[ i ].ItemArray[ j ]);
table_stats.GetCell(j, k).TextFrame.Paragraphs[0].Portions[0].FontHeight = 7;
table_stats.GetCell(j, k).TextFrame.Paragraphs[0].HasBullet = 0;