problem with objects?
Hi sorry this might be a silly question but i'm new to this.... i'm trying to work with a word document, using code i got in the help part of ASP.net, but the code won't compile, giving me the error on the docNew = Documents.Add line:
reference to a non-shared member requires an object reference
the code is below, thanks in advance for any help:
Dim docNew As New Word.Document
docNew = Documents.Add
With docNew
' Add code here to work with the new document.
End With
|