LabWork02 Bug fixes

This commit is contained in:
parent ee5ec2e1a5
commit 4a4727d83a
2 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ namespace Components.NonVisualComponents
worksheet.Cells[2, i] = headers[i - 1]; worksheet.Cells[2, i] = headers[i - 1];
Excel.Range column = (Excel.Range)worksheet.Columns[i]; 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]; Excel.Range cell = (Excel.Range)worksheet.Cells[2, i];
cell.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter; cell.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter;
@ -166,7 +166,7 @@ namespace Components.NonVisualComponents
if (columnIndex != 0) if (columnIndex != 0)
{ {
worksheet.Cells[i, columnIndex] = propertyValue; worksheet.Cells[row, columnIndex] = propertyValue;
} }
} }

View File

@ -63,7 +63,7 @@ namespace WinForms
}; };
List<int> columnsWidth = new List<int>() 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>() List<string> columns = new List<string>()