private void BothHasLabels()
{
Row row = new Row (table);
Cell cell = new Cell (table.Document);
Paragraph paragraph = new Paragraph (m_document );
cell.Content .Add (paragraph);
row.Cells .Add (cell);
RowHeader rowheader = new RowHeader (table);
for(int i=startColumnIndex; i<endColumnIndex ; i++)
{
Cell cellTemp = m_tableData.table .Rows [startRowIndex-1].Cells[i];
string cellRepeating = cellTemp.ColumnRepeating ;
int cellRepeated=0;
if (cellRepeating!=null)
cellRepeated= Int32.Parse (cellTemp.ColumnRepeating);
if (cellRepeated >1)
{
for(int j=0; j<cellRepeated-1; j++)
{
row.Cells .Add (cellTemp);
i++;
}
}
row.Cells .Add (cellTemp);
}
rowheader.RowCollection .Add (row);
table.RowHeader =rowheader;
for(int i=startRowIndex; i<endRowIndex; i++)
{
Row tempRow = new Row (table);
for(int j=startColumnIndex-1;j<endColumnIndex;j++)
{
Cell cellTemp = m_tableData.table .Rows [i].Cells [j];
string cellRepeating = cellTemp.ColumnRepeating;
int cellRepeated =0;
if (cellRepeating!=null)
cellRepeated= Int32.Parse (cellTemp.ColumnRepeating );
if (cellRepeated>1)
{
for(int m=0; m<cellRepeated-1; m++)
{
tempRow.Cells .Add (cellTemp);
i++;
}
}
tempRow.Cells .Add (cellTemp);
}
table.Rows .Add (tempRow);
}
}