Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / February 2007

Tip: Looking for answers? Try searching our database.

Writing an Add-In that reacts to Saved documents in Visual Studio 2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
carl.ericsson@gmail.com - 31 Jan 2007 09:36 GMT
Hi!

I´m trying to get my head around the API for writing Add-Ins (this is
my first attempt at an Add-In).
What I want to do is to make a backup of each document that is saved
within Visual Studio 2005, I suppose I need to somehow catch an Event
when a document in Visual Studio has been saved.

I´ve found the following Events that seem interesting:
IVsRunningDocTableEvents::OnAfterSave
DocumentEvents::DocumentSaved

But I just can´t get this to work.

Regards
/Carl
Carlos J. Quintero [VB MVP] - 01 Feb 2007 11:59 GMT
Are you writing an add-in or a packake?

Because add-ins can use the DTE.Events.DocumentEvents.DocumentSaved

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

Hi!

I´m trying to get my head around the API for writing Add-Ins (this is
my first attempt at an Add-In).
What I want to do is to make a backup of each document that is saved
within Visual Studio 2005, I suppose I need to somehow catch an Event
when a document in Visual Studio has been saved.

I´ve found the following Events that seem interesting:
IVsRunningDocTableEvents::OnAfterSave
DocumentEvents::DocumentSaved

But I just can´t get this to work.

Regards
/Carl
Glenn - 01 Feb 2007 17:09 GMT
On Feb 1, 5:59 am, "Carlos J. Quintero [VB MVP]"
<carlosqnos...@nospam.com> wrote:
> Are you writing an add-in or a packake?

What's a 'packake'?
Oenone - 02 Feb 2007 14:01 GMT
> On Feb 1, 5:59 am, "Carlos J. Quintero [VB MVP]"
> <carlosqnos...@nospam.com> wrote:
>> Are you writing an add-in or a packake?
>
> What's a 'packake'?

Perhaps a "package" spelled wrong..? (I thought it said "pancake" when I
first read it!)

Signature

(O)enone

Carlos J. Quintero [VB MVP] - 05 Feb 2007 09:51 GMT
A "Package" is a component created with the Visual Studio SDK, while add-ins
don't use the SDK. The programming model is different. See:

http://www.mztools.com/resources_vsnet_addins.htm

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

> On Feb 1, 5:59 am, "Carlos J. Quintero [VB MVP]"
> <carlosqnos...@nospam.com> wrote:
>> Are you writing an add-in or a packake?
>
> What's a 'packake'?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.