I am developing an Visual Baisc application. This application creates word documents by taking the content from the user.
Here is the specification........
A VB form contains below text fileds......
Book Title: _____________
Chapter Number: _____________
Chapter Title: _____________
Chapter Text: _____________
User will enter content in above text files and press Submit Button. Then i need to create a word document with above content. And this document will be saved in Desktop of the user system.
When i searched on the internet for the code. I found below of the sample vb code. But it doesn't have my requirement.
Dim oApp As New Word.Application
Dim oDoc As New Word.Document
Set oApp = CreateObject("Word.Application")
Set oDoc = oApp.Documents.Add
oApp.Visible = False
''' Here i need to insert the above content into the word document.
Set oApp = Nothing
Set oDoc = Nothing
Could you please provide some sample code for inserting content into the word document?
Thanks in advance,