OpenXML Add paragraph style (Heading1,Heading2, Head 3 Etc) to a word processing document
问题 Can anybody guide me how to add predefined styles on paragraph using open XML Word Processing? I have tried various solutions available on forums but nothing works for me. Here is what i want to accomplish: // Create a document by supplying the filepath. WordprocessingDocument wordDocument = WordprocessingDocument.Create("E:/Test/Executive.Docx", WordprocessingDocumentType.Document); // Add a main document part. MainDocumentPart mainPart = wordDocument.AddMainDocumentPart(); // Create the