private static void CreateTestDocument(string path) { const string sentence = "The quick brown fox jumps over the lazy dog."; string text = string.Join(" ", Enumerable.Range(0, 22).Select(i => sentence)); IEnumerable <string> texts = Enumerable.Range(0, ParagraphCount).Select(i => text); using WordprocessingDocument unused = WordprocessingDocumentFactory.Create(path, texts); }
public void CreateTest() { var factory = new WordprocessingDocumentFactory(); var document = new DebugDocument(); using (var package = factory.Create(document, @"Путь до файла шаблона .dotx или документа .docx")) { } }
private static void CreateTestDocument(string path, int count = ParagraphCount, string text = Text) { using WordprocessingDocument unused = WordprocessingDocumentFactory.Create( path, Enumerable.Range(0, count).Select(i => text)); }