Thanks for the helpful link. The problem is, it is(the web links) looking for full file path and I just have file name. any thoughts?
Thanks again. Musa. On Jul 6, 1:29 pm, Vivek SHANTHARAM <[email protected]> wrote: > do you know the filename that is open in the taskbar?? then it should be > easy to fetch that filename and copy it right??? > > refer the below links for some more idea. > > http://stackoverflow.com/questions/897796/how-do-i-open-an-already-op... > > http://stackoverflow.com/questions/685135/open-file-in-exclusive-mode... > > On Mon, Jul 6, 2009 at 10:52 PM, musa.biralo <[email protected]> wrote: > > > Nice idea, Vivek, > > > But the question is how to make a copy of it without getting the main > > window or main word doc? > > > Thanks > > Musa. > > > On Jul 6, 11:52 am, Vivek SHANTHARAM <[email protected]> wrote: > > > 1) make a copy of the file in some other temporary location. > > > 2) Do the changes you want to make and > > > 3) then replace it with the original file that is open. > > > > Classes like File, FileSystem contains some methods like open, openread, > > > openwrite, copy etc, which should help you. Hope this works. > > > > On Mon, Jul 6, 2009 at 7:21 PM, musa.biralo <[email protected]> > > wrote: > > > > > Greetings. > > > > > First of all I am not looking for the entire code, I need your help to > > > > direct me or give some suggestions. > > > > > From VB.NET <http://vb.net/> <http://vb.net/>, will I be able to write > > a string to a word > > > > document which > > > > is already open (I can see the word doc in taskbar)? I was able to get > > > > the file name of the word doc that's in taskbar but failed to activate > > > > it or write on it. > > > > > So, from VB.NET <http://vb.net/> <http://vb.net/>, I need to activate > > or get the word doc > > > > which is up > > > > and running with a file name of "Musa.doc" and write some text to the > > > > word doc... > > > > > Any suggestion will be very helpful. > > > > > Thanks in advance. > > > > Musa.Biralo > >
