LabWork02 Bug fixes
This commit is contained in:
parent
ee5ec2e1a5
commit
4a4727d83a
@ -98,7 +98,7 @@ namespace Components.NonVisualComponents
|
||||
worksheet.Cells[2, i] = headers[i - 1];
|
||||
|
||||
Excel.Range column = (Excel.Range)worksheet.Columns[i];
|
||||
//column.ColumnWidth = columnsWidth[i - 1];
|
||||
column.ColumnWidth = columnsWidth[i - 1];
|
||||
|
||||
Excel.Range cell = (Excel.Range)worksheet.Cells[2, i];
|
||||
cell.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter;
|
||||
@ -166,7 +166,7 @@ namespace Components.NonVisualComponents
|
||||
|
||||
if (columnIndex != 0)
|
||||
{
|
||||
worksheet.Cells[i, columnIndex] = propertyValue;
|
||||
worksheet.Cells[row, columnIndex] = propertyValue;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ namespace WinForms
|
||||
};
|
||||
List<int> columnsWidth = new List<int>()
|
||||
{
|
||||
20, 20, 30, 30, 30, 30, 30, 50, 50, 30
|
||||
10, 10, 20, 20, 20, 20, 20, 30, 30, 10
|
||||
};
|
||||
|
||||
List<string> columns = new List<string>()
|
||||
|
Loading…
Reference in New Issue
Block a user