From 71a5a25c1a618f6e28f8e28e3c02ffc0635b82eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D0=B0=D0=BB=D0=B8=D0=BD=D0=B0=20=D0=A4=D0=B5=D0=B4?= =?UTF-8?q?=D0=BE=D1=80=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Fri, 19 Apr 2024 10:53:49 +0400 Subject: [PATCH] =?UTF-8?q?=D1=87=D0=B8=D1=81=D1=82=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CarpentryWorkshop/CarpentryWorkshop/FormReportOrders.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/CarpentryWorkshop/CarpentryWorkshop/FormReportOrders.cs b/CarpentryWorkshop/CarpentryWorkshop/FormReportOrders.cs index 549c278..eb4374d 100644 --- a/CarpentryWorkshop/CarpentryWorkshop/FormReportOrders.cs +++ b/CarpentryWorkshop/CarpentryWorkshop/FormReportOrders.cs @@ -22,7 +22,6 @@ namespace CarpentryWorkshopView }; var path = Directory.GetParent(Directory.GetCurrentDirectory())?.Parent?.Parent?.ToString() + "\\ReportOrders.rdlc"; reportViewer.LocalReport.LoadReportDefinition(new FileStream(path, FileMode.Open)); - //reportViewer.LocalReport.LoadReportDefinition(new FileStream("ReportOrders.rdlc", FileMode.Open)); Controls.Clear(); Controls.Add(reportViewer); Controls.Add(panel); @@ -47,7 +46,6 @@ namespace CarpentryWorkshopView reportViewer.LocalReport.DataSources.Add(source); var parameters = new[] { new ReportParameter("ReportParameterPeriod", $"c {dateTimePickerDateFrom.Value.ToShortDateString()} по {dateTimePickerDateTo.Value.ToShortDateString()}") }; - // ЗДЕСЬ ПРОИСХОДИТ ОШИБКА И ВЫБРАСЫВАЕТСЯ ИСКЛЮЧЕНИЕ reportViewer.LocalReport.SetParameters(parameters); reportViewer.RefreshReport(); _logger.LogInformation("Загрузка списка заказов на период {From}-{To}", @@ -74,7 +72,6 @@ namespace CarpentryWorkshopView { try { - // ВОТ ЗДЕСЬ ТОЖЕ СРАЗУ ИСКЛЮЧЕНИЕ _logic.SaveOrdersToPdfFile(new ReportBindingModel { FileName = dialog.FileName,