...
5. Insert the text into the document with Document.InsertTextAfter
Csharp | ||||
---|---|---|---|---|
| ||||
DOC.InsertTextAfter(value, true); |
...
Congratulations, you have completed Hello World using WordApplication!
Final Code
Csharp | ||||
---|---|---|---|---|
| ||||
using SoftArtisans.OfficeWriter.WordWriter; ... WordApplication WAPP = new WordApplication(); Document DOC = WAPP.Create(); string value = DataValueBox.Text.Trim(); DOC.InsertTextAfter(value, true); WAPP.Save(DOC, Response, "Output.doc", false); |
...