Hello. There is such a question. I create a Word document in C # 'e. In the document, the table, and the table is filled from the dataGridView so
for (int i = 0; i < dataGridView1.RowCount; i++) for (int j = 0; j < dataGridView1.ColumnCount; j++) wordTable.Cell(i, j).Range.Text = dataGridView1.Rows[i].Cells[j].Value.ToString();
The problem is that in the Word, the last columns are not filled, and when I put a break point, everything is filled. Tell me, what's the problem?