system.windows.documents not working
hi
i am trying to run an example that i copied from msdn
this example
Dim docNew As document
docNew = Documents.Add
With docNew.MailMerge
.MainDocumentType = wdFormLetters
.OpenDataSource( _
Name:="C:\Program Files\Microsoft Office" & _
"\Office\Samples\Northwind.mdb", _
LinkToSource:=True, AddToRecentFiles:=False, _
Connection:="TABLE Orders")
End With
but i get a error that "document" is not declared
i tried to import namespace system.windows.documents but i havent got it
where can i find that namespace?
Re: system.windows.documents not working
I think you are looking for the Word reference, goto Project->Reference->COM ->Microsoft Word Object x.x
Re: system.windows.documents not working
If you use Office XP or later, you should check out the Primary Interop Assemblies for Office.
http://www.microsoft.com/downloads/d...displaylang=en