I am not getting what exactly you wanted to say Santosh, sorry for this... but the above written code will work for all ms office applications ( with slight modifications).
On Jul 31, 1:17 pm, santhosh vs <[email protected]> wrote: > Above code only work for Word and I think that is not what he meant. > Documents are based on applications/processes and we could > only enumerate the processes, but using technologies such as OLE > you could do for specific application such as word like the code above. > > On Fri, Jul 31, 2009 at 12:50 AM, archana katiyar > <[email protected]>wrote: > > > > > > > > > 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 - > > -- > > Santhosh Vhttp://techplex.wordpess.com- Hide quoted text - > > - Show quoted text -
