B
bannp
Hi All,
I'm writing a project in VB.NET that needs to copy some information
from an open word. The open word document has already been opened on
the workstation by another application. I want my program to be able to
see the open word document and copy the contents of the open Word
document to another word document. So far it looks like this:
Dim word As New Microsoft.Office.Interop.Word.Application
Dim doc As New Microsoft.Office.Interop.Word.Document
Try
doc = word.Documents.open("Need to insert already open word
document)
doc.Activate()
Catch ex As COMException
MessageBox.Show(ex.Message)
End Try
I have tried using the GetObject function in VB.NET but I keep getting
an Active X Error. Any body got any ideas how I could achive this.
Thanks,
Pete
I'm writing a project in VB.NET that needs to copy some information
from an open word. The open word document has already been opened on
the workstation by another application. I want my program to be able to
see the open word document and copy the contents of the open Word
document to another word document. So far it looks like this:
Dim word As New Microsoft.Office.Interop.Word.Application
Dim doc As New Microsoft.Office.Interop.Word.Document
Try
doc = word.Documents.open("Need to insert already open word
document)
doc.Activate()
Catch ex As COMException
MessageBox.Show(ex.Message)
End Try
I have tried using the GetObject function in VB.NET but I keep getting
an Active X Error. Any body got any ideas how I could achive this.
Thanks,
Pete