diff --git a/FurnitureAssembly/FurnitureAssemblyBusinessLogic/OfficePackage/Implements/SaveToWord.cs b/FurnitureAssembly/FurnitureAssemblyBusinessLogic/OfficePackage/Implements/SaveToWord.cs index dd4a426..f3981a5 100644 --- a/FurnitureAssembly/FurnitureAssemblyBusinessLogic/OfficePackage/Implements/SaveToWord.cs +++ b/FurnitureAssembly/FurnitureAssemblyBusinessLogic/OfficePackage/Implements/SaveToWord.cs @@ -8,6 +8,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using DocumentFormat.OpenXml.Vml; namespace FurnitureAssemblyBusinessLogic.OfficePackage.Implements { @@ -121,6 +122,8 @@ namespace FurnitureAssemblyBusinessLogic.OfficePackage.Implements if (run.Item2.Bold) { + // properties.AppendChild(new Italic()); + properties.AppendChild(new Bold()); } @@ -138,7 +141,7 @@ namespace FurnitureAssemblyBusinessLogic.OfficePackage.Implements _docBody.AppendChild(docParagraph); } - // Метод сохранения документа + // сохранение документа protected override void SaveWord(WordInfo info) { if (_docBody == null || _wordDocument == null) @@ -146,10 +149,10 @@ namespace FurnitureAssemblyBusinessLogic.OfficePackage.Implements return; } - // Вставляем информацию по секциям (смотри, что является входным параметром) + // вставляем инфу по секциям (настройка страницы) _docBody.AppendChild(CreateSectionProperties()); - // Сохраняем документ + // сохраняем _wordDocument.MainDocumentPart!.Document.Save(); _wordDocument.Dispose(); diff --git a/FurnitureAssembly/FurnitureAssemblyView/FormReportOrders.cs b/FurnitureAssembly/FurnitureAssemblyView/FormReportOrders.cs index 794f4e9..562cf8d 100644 --- a/FurnitureAssembly/FurnitureAssemblyView/FormReportOrders.cs +++ b/FurnitureAssembly/FurnitureAssemblyView/FormReportOrders.cs @@ -118,7 +118,5 @@ namespace FurnitureAssemblyView } } } - - } }