105
// tbl1.Cell(1, i +
1).Range.Borders[WdBorderType.wdBorderRight].LineStyle =
WdLineStyle.wdLineStyleSingle;
// tbl1.Cell(1, i + 1).Range.Borders[WdBorderType.wdBorderTop].LineStyle
= WdLineStyle.wdLineStyleSingle;
// tbl1.Cell(1, i +
1).Range.Borders[WdBorderType.wdBorderBottom].LineStyle =
WdLineStyle.wdLineStyleSingle;
//}
////строки таблицы
//for (int i = 0; i <= dataGridView4.Rows.Count - 1; i++)
//{
// tbl1.Rows.Add();
// for (int j = 0; j <= 1; j++)
// {
// if (dataGridView4.Rows[i].Cells[2 + j].Value == null) continue;
// //if (j == 0) tbl1.Cell(tbl1.Rows.Count, j + 1).Range.Text =
bDDataSet.Комплектующие.FindByКодКомплект(Convert.ToInt32(dataGridView4.
Rows[i].Cells[2 + j].Value)).Наименование;
// // else
// {
// tbl1.Cell(tbl1.Rows.Count, j + 1).Range.Text =
dataGridView4.Rows[i].Cells[2 + j].Value == null ? "" :
dataGridView4.Rows[i].Cells[j].Value.ToStri ng();
// tbl1.Cell(tbl1.Rows.Count, j +
1).Range.Borders[WdBorderType.wdBorderLeft].LineStyle =
WdLineStyle.wdLineStyleSingle;
// tbl1.Cell(tbl1.Rows.Count, j +
1).Range.Borders[WdBorderType.wdBorderRight].Line Style =
WdLineStyle.wdLineStyleSingle;
// tbl1.Cell(tbl1.Rows.Count, j +
1).Range.Borders[WdBorderType.wdBorderTop].LineStyle =
WdLineStyle.wdLineStyleSingle;
// tbl1.Cell(tbl1.Rows.Count, j +
1).Range.Borders[WdBorderType.wdBorderBottom].LineStyle =
WdLineStyle.wdLineStyleSingle;
// }
// }
//}