How to reload externally modified file using AddIn
by Gerrit Beuze » Fri, 27 May 2005 17:55:06 GMT
Hi all,
After a file has been modified by an external tool,
VS2003 displays something like "File has changed, reload Yes/No/All".
Is there a way to reload the file using the extensibility objects to avoid
this dialog?
I looked in the obvious places:
The Document object does not have a Reload method
and the TextDocument and ItemOperations objects netiher.
I could of course use the TextSelection and EditPoint objects to
Delete the entire document and then re-insert the text from file,
but I thought there might be an easier way
Thanks in advance,
Gerrit Beuze
ModelMaker Tools
Re: How to reload externally modified file using AddIn
by Carlos J. Quintero [.NET MVP] » Fri, 27 May 2005 20:47:16 GMT
Although there is no reload method, you can close the document without
saving changes, modify the file with the external tool, and open it again in
the IDE.
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.**--****.com/
"Gerrit Beuze" <gerrit[at]modelmaker[dot]demon[dot]nl> escribien el
>> Hi all,
>>
>> After a file has been modified by an external tool,
>> VS2003 displays something like "File has changed, reload Yes/No/All".
>> Is there a way to reload the file using the extensibility objects to avoid
>> this dialog?
>>
>> I looked in the obvious places:
>> The Document object does not have a Reload method
>> and the TextDocument and ItemOperations objects netiher.
>>
>> I could of course use the TextSelection and EditPoint objects to
>> Delete the entire document and then re-insert the text from file,
>> but I thought there might be an easier way
>>
>>
>> Thanks in advance,
>>
>> Gerrit Beuze
>> ModelMaker Tools
>>
>>
Similar Threads:
1.Took a long time to reload a page after modifying a XML file
2.Multi-Project Reload When Proj File Modified Outside VS.Net 2003
I am using VS.Net 2003 Ent Arch along with CVS. I have a solution with
multi-projects open. When a single proj file is updated (by CVS, or anything
else) VS.Net correctally detects it and asks if you want to reload the
project. Everything works great.
The problem occurs when two or more project files are updated but only one
is updated. I set focus to WinCVS and do update on dir tree that causes two
proj files to be updated. When I set focus back to VS.Net it detects one and
asks to reload. I choose yes but the other never gets reloaded.
The workaround is to close and reopen the solution to get the updates to the
second proj file that was updated.
Extra Info: VS.Net 2003 Ent Arch, Proj files are all c/c++, about 15 proj
files in single solution file, 1 proj is c lib, 2 are c dlls, rest are c/c++
exes.
If more info is needed e-mail me at rdls22ATtditxDOTcom.
Thanks,
SLDR
(Stephen L. De Rudder)
3.Open file in application externally
I'm using VB.net 2005 - -
I have 2 questions, actually - - -
1. I remember, in VB6, there was a way, to set command line parameters or
something, so that, if you use the 'Open With' option, or dragged a file
onto the MDI interface, it would open inside the interface.
2. How can I make it so that, if the application is already open, trying to
do the above will not open a new instance, but open it with the currently
open instance?
Does anyone know how this all is done in VS.Net 2005?
4.Accessing files externally
5.Adding,Deleting and modifying the xml file using asp.net tree view control
6. Using Web Services to Modify an XML File?
7. Modify code using a hash table in comparing two text files
8. How to modify the EXE file using VB.NET