Hello,
I have a VB.net application that creates reports from database information. I am able to create the reports fine. The problem is each time I create a report my application starts a new instance of Word instead of just adding a document to the current application. I use the following code to create each report. If I take the New out I get an error.
Dim objWord As New Word.Application
objWord.Visible = True
objWord.Documents.Add()
objWord.Selection.TypeText("Report Created - " & Now())
...
objWord = Nothing
Anyone know how I create multiple Word reports without creating multiple instances of Word?
Thanks!
LegalIT