diff --git a/InternetShop/InternetShopForms/Orders/FormOrdersList.cs b/InternetShop/InternetShopForms/Orders/FormOrdersList.cs index 5ec495f..184e3b5 100644 --- a/InternetShop/InternetShopForms/Orders/FormOrdersList.cs +++ b/InternetShop/InternetShopForms/Orders/FormOrdersList.cs @@ -215,6 +215,16 @@ namespace InternetShopForms { return; } + var orders = _orderLogic.ReadList(); + try + { + bigTextWordNoVisibleComponent.CreateAndSaveDocument(exportFileName, "Отчет по заказам", ); + MessageBox.Show("Отчет успешно сформирован", "Создание отчета", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show("Произошла ошибка при создании отчета:\n" + ex.Message, "Создание отчета", MessageBoxButtons.OK, MessageBoxIcon.Error); + } } private void CreateExcel()