From c776f582de93addb7ad2e895fadabff136ece8e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=B0=D0=BD=D0=BD=D0=B0?= Date: Fri, 31 May 2024 20:44:05 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BE=D1=85...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OfficePackage/Implements/SaveToWord.cs | 1 + University/UniversityClientApp/Program.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/University/UniversityBusinessLogics/OfficePackage/Implements/SaveToWord.cs b/University/UniversityBusinessLogics/OfficePackage/Implements/SaveToWord.cs index 9698176..2659087 100644 --- a/University/UniversityBusinessLogics/OfficePackage/Implements/SaveToWord.cs +++ b/University/UniversityBusinessLogics/OfficePackage/Implements/SaveToWord.cs @@ -140,6 +140,7 @@ namespace UniversityBusinessLogics.OfficePackage.Implements _wordDocument.MainDocumentPart!.Document.Save(); + _wordDocument.Close(); } } diff --git a/University/UniversityClientApp/Program.cs b/University/UniversityClientApp/Program.cs index eaec648..8ff968c 100644 --- a/University/UniversityClientApp/Program.cs +++ b/University/UniversityClientApp/Program.cs @@ -1,6 +1,7 @@ using Serilog; using UiversityDatabaseImplement.Implements; using UniversityBusinessLogics.BusinessLogic; +using UniversityBusinessLogics.BusinessLogics; using UniversityBusinessLogics.MailWorker; using UniversityBusinessLogics.OfficePackage; using UniversityBusinessLogics.OfficePackage.Implements;