diff --git a/WinForm/AppView/FormMain.cs b/WinForm/AppView/FormMain.cs index d171f3a..3d95b30 100644 --- a/WinForm/AppView/FormMain.cs +++ b/WinForm/AppView/FormMain.cs @@ -201,40 +201,15 @@ namespace AppView new ColumnConfig { Width = 70f, PropertyName = "SupplyDateTime" }, }; - /*ComponentDocumentWithTableHeaderDataConfig config = new() - { - Data = providersList, - Headers = new() - { - (0, 0, "Идентификатор", "Id"), - (1, 0, "Название", "Name"), - (2, 0, "Тип организации", "Type"), - (3, 0, "Дата поставки", "SupplyDateTime"), - }, - Header = "Отчет по всем поставщикам", - UseUnion = false, - ColumnsRowsWidth = new() - { - (10,10), - (10,10), - (10,10), - (10,10), - }, - ColumnsRowsDataCount = new() - };*/ - SaveFileDialog saveFileDialog = new() { Filter = "Excel Files|*.xlsx" }; if (saveFileDialog.ShowDialog() == DialogResult.OK) { - //config.FilePath = saveFileDialog.FileName; - try { componentWithSettings.GenerateExcelDocument(saveFileDialog.FileName, "Отчет по всем поставщикам", columnConfigs, 25f, 35f, providersList); - //componentDocumentWithTableMultiHeaderExcel.CreateDoc(config); MessageBox.Show( "Excel-документ успешно сохранен.", "Успех",