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;