General Input/Output Error
public void WordprocessingFromString(string InputPath, string OutputPath, string InputDir) { using (WordprocessingDocument myDoc = WordprocessingDocument.Create(OutputPath, WordprocessingDocumentType.Document)) { MainDocumentPart mainPart = myDoc.AddMainDocumentPart(); mainPart.Document = new Document(); Body body = new Body(); Text heading_text = new Text("Test by amal.."); ParagraphProperties heading_pPr = new ParagraphProperties(); body.Append(heading_text); mainPart.Document.Append(body); mainPart.Document.Save(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)