BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
//Loads the template document WordDocument wordDocument = new WordDocument(); wordDocument.EnsureMinimal(); //Adds the paragraph to the document WParagraph paragarph = wordDocument.LastSection.AddParagraph() as WParagraph; //Appends the text to the paragraph paragarph.AppendText("Text some text"); //Appends the line break paragarph.AppendBreak(BreakType.LineBreak); //Appends the text to the paragraph paragarph.AppendText("more text"); //Appends the line break paragarph.AppendBreak(BreakType.LineBreak); //Saves the document wordDocument.Save("output.docx"); wordDocument.Close(); |
//Loads the template document WordDocument wordDocument = new WordDocument(); wordDocument.EnsureMinimal(); //Adds the paragraph to the document WParagraph paragarph = wordDocument.LastSection.AddParagraph() as WParagraph; //Appends the text to the paragraph paragarph.AppendText("Text some text"); //Appends the line break paragarph.AppendBreak(BreakType.LineBreak); //Appends the text to the paragraph paragarph.AppendText("more text"); //Appends the line break paragarph.AppendBreak(BreakType.LineBreak); //Saves the document wordDocument.Save("output.docx"); wordDocument.Close(); |