get Path from running instance of word ?
C#
3
Posts
2
Posters
0
Views
1
Watching
-
Hi , I have a running instance of word got from Marshal.GetActiveObject("Word.Application"); in my c# application. So how do i get the absolute path of the word document that is open?
Luck is Opportunity with hardwork
-
... Word.Application w= new Word.Application(); w = (Word.Application) System.Runtime.InteropServices.Marshal.GetActiveObject("Word.Application"); MessageBox.Show(w.ActiveDocument.Path); ...
UMS