From 4c0882df61a687b91d823828b8bb080b660dee7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=90=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=D0=BA=D0=B8=D0=BD?= Date: Wed, 1 Nov 2023 19:30:14 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=84=D0=B8=D0=BA=D1=81=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B8=D0=B7=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WinFormsProject/WinFormsLibrary/DocumentWithImage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WinFormsProject/WinFormsLibrary/DocumentWithImage.cs b/WinFormsProject/WinFormsLibrary/DocumentWithImage.cs index f7dfaf7..2bcc544 100644 --- a/WinFormsProject/WinFormsLibrary/DocumentWithImage.cs +++ b/WinFormsProject/WinFormsLibrary/DocumentWithImage.cs @@ -57,6 +57,7 @@ namespace WinFormsLibrary body.Append(titleParagraph); // Добавляем изображения + mainPart.Document.Append(body); foreach (string imagePath in imageClass.Files) { if (File.Exists(imagePath)) @@ -75,7 +76,6 @@ namespace WinFormsLibrary } } - mainPart.Document.Append(body); Console.WriteLine($"Word-документ успешно создан в файле '{imageClass.Path}'."); } }