I need to write data from SQL Server to MS Word. I have never done that and even I dont have any idea how to proceed. I really apprecite if any body can help me. Please post sample code if any.
Thanks in advance,
Word has a fairly robust object model. For starters you should create windows application project and add a COM reference to the Microsoft Word type library.
The following code will create a document and add some text:
Dim objWord As New Word.Application()
Dim objDoc As Word.Document
objWord.Visible = True
objDoc = objWord.Documents.Add()
Information on Word developement canbe found at: