diff --git a/COPWinForms/COPWinForms.csproj b/COPWinForms/COPWinForms.csproj
index b57c89e..976e1d7 100644
--- a/COPWinForms/COPWinForms.csproj
+++ b/COPWinForms/COPWinForms.csproj
@@ -8,4 +8,9 @@
enable
+
+
+
+
+
\ No newline at end of file
diff --git a/COPWinForms/ComponentWord1.Designer.cs b/COPWinForms/ComponentWord1.Designer.cs
new file mode 100644
index 0000000..45d6eb8
--- /dev/null
+++ b/COPWinForms/ComponentWord1.Designer.cs
@@ -0,0 +1,36 @@
+namespace COPWinForms
+{
+ partial class ComponentWord1
+ {
+ ///
+ /// Обязательная переменная конструктора.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Освободить все используемые ресурсы.
+ ///
+ /// истинно, если управляемый ресурс должен быть удален; иначе ложно.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Код, автоматически созданный конструктором компонентов
+
+ ///
+ /// Требуемый метод для поддержки конструктора — не изменяйте
+ /// содержимое этого метода с помощью редактора кода.
+ ///
+ private void InitializeComponent()
+ {
+ components = new System.ComponentModel.Container();
+ }
+
+ #endregion
+ }
+}
diff --git a/COPWinForms/ComponentWord1.cs b/COPWinForms/ComponentWord1.cs
new file mode 100644
index 0000000..4824cc9
--- /dev/null
+++ b/COPWinForms/ComponentWord1.cs
@@ -0,0 +1,88 @@
+using Aspose.Words;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace COPWinForms
+{
+ public partial class ComponentWord1 : Component
+ {
+ private string _fileName;
+
+ // private WordprocessingDocument? _wordDocument;
+
+ // private Body? _docBody;
+
+ public string FileName
+ {
+ set
+ {
+ if (string.IsNullOrEmpty(value))
+ {
+ return;
+ }
+ if (!value.EndsWith(".docx"))
+ {
+ throw new ArgumentException("No docx file");
+ }
+ _fileName = value;
+ }
+ }
+ public ComponentWord1()
+ {
+ InitializeComponent();
+ _fileName = string.Empty;
+ }
+ public ComponentWord1(IContainer container)
+ {
+ container.Add(this);
+ InitializeComponent();
+ _fileName = string.Empty;
+ }
+ public void CreateWordText(TextWord textWord)
+ {
+ // Создание документа
+ Document document = new Document();
+ DocumentBuilder builder = new DocumentBuilder(document);
+ Style titleStyle = builder.Document.Styles.Add(StyleType.Paragraph, "Title");
+ titleStyle.Font.Size = 16;
+ titleStyle.Font.Bold = true;
+
+ // Установка заголовка документа
+ builder.ParagraphFormat.Style = titleStyle;
+ builder.Writeln(textWord.DocumentTitle);
+
+ // Создание обычного стиля для остального текста
+ Style normalStyle = builder.Document.Styles[StyleIdentifier.Normal];
+ normalStyle.Font.Size = 12;
+
+ // Применение обычного стиля для остального текста
+ builder.ParagraphFormat.Style = normalStyle;
+
+ // Установка заголовка документа
+ document.BuiltInDocumentProperties.Title = textWord.DocumentTitle;
+
+ foreach (string textLine in textWord.TextData)
+ {
+ // Добавление строки текста в документ
+ builder.Writeln(textLine);
+ }
+ document.Save(textWord.FilePath);
+ }
+
+ bool CheckData(string[] data)
+ {
+ for (int i = 0; i < data.Length; i++)
+ {
+ if (string.IsNullOrEmpty(data[i])) return false;
+ }
+
+ return true;
+ }
+
+ }
+}
diff --git a/COPWinForms/ComponentWord2.Designer.cs b/COPWinForms/ComponentWord2.Designer.cs
new file mode 100644
index 0000000..af0c2b4
--- /dev/null
+++ b/COPWinForms/ComponentWord2.Designer.cs
@@ -0,0 +1,36 @@
+namespace COPWinForms
+{
+ partial class ComponentWord2
+ {
+ ///
+ /// Обязательная переменная конструктора.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Освободить все используемые ресурсы.
+ ///
+ /// истинно, если управляемый ресурс должен быть удален; иначе ложно.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Код, автоматически созданный конструктором компонентов
+
+ ///
+ /// Требуемый метод для поддержки конструктора — не изменяйте
+ /// содержимое этого метода с помощью редактора кода.
+ ///
+ private void InitializeComponent()
+ {
+ components = new System.ComponentModel.Container();
+ }
+
+ #endregion
+ }
+}
diff --git a/COPWinForms/ComponentWord2.cs b/COPWinForms/ComponentWord2.cs
new file mode 100644
index 0000000..c6d353e
--- /dev/null
+++ b/COPWinForms/ComponentWord2.cs
@@ -0,0 +1,101 @@
+using Aspose.Words.Drawing.Charts;
+using Aspose.Words;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Aspose.Words.Tables;
+
+namespace COPWinForms
+{
+ public partial class ComponentWord2 : Component
+ {
+ public ComponentWord2()
+ {
+ InitializeComponent();
+ }
+
+ public ComponentWord2(IContainer container)
+ {
+ container.Add(this);
+
+ InitializeComponent();
+ }
+
+ public void CreateTable(string filePath, string documentTitle, List columnDefinitions, List