Hello,
using the code written following we can get full path of all the
currently opened documents.
Word.Application wordApp = (Word.Application)
System.Runtime.InteropServices.Marshal.GetActiveObject
("Word.Application");
Word.Documents documents = wordApp.Documents;
foreach( Word.Document document in documents)
{
textBlock.Text += "\n" + document.Path +
document.Name; ;
}
use any property of the document to get the details you want.
On Jul 7, 6:45 pm, "musa.biralo" <[email protected]> wrote:
> I am sorry, if you were trying to post your answers then I don't see
> those...
>
> On Jul 7, 4:23 am, alanhz <[email protected]> wrote:
>
>
>
> > mark
>
> > On Jul 7, 9:07 am, "musa.biralo" <[email protected]> wrote:
>
> > > Hi there,
>
> > > Is there a way to get the full path of any open document? Let's say
> > > you have a word open in your task bar, using vb.net or cs.net, is
> > > there a way to retrieve the full path of the open word document?
>
> > > Thanks for the any direction.
> > > Musa- Hide quoted text -
>
> - Show quoted text -