Develop Office Business Applications using Visual Studio
In this episode: a tip about how to save a new copy of a Word document instead of saving over the original, and how to create a class in an Outlook project to access methods without hitting the object model security prompts. Plus, Mary creates a quick data UI in Excel for her boss Kemp.
Related resources for more information:
Save a new copy of a document instead of saving over the original
Create a class in an Outlook project to access methods without hitting the object model security prompts
More about accessing Outlook from John R. Durant's blog
PingBack from http://msofficesecurity.com/officesecurity/office/microsoft-office-developer-show-episode-2-harry-miller
I am new to VSTO and I am looking to make an outlook add-on which can be activated either by clicking a button on the tool bar or by an event in the appointments. The purpose of this add-on will be to log weekly time in the company web time application. So when activated I want the tool to ask the user for login info and give the option to save this info, if the info is saved get it from the local data store. Then i would like the add-in to open a new panel with a browser control that submits the user login info to the web time application. From there the browser will do the rest, the user will be logged in and can enter the time.
So first of all is this even possible, second can you point me in the right direction. I am an advanced C# developer and I am thinking VSTO development should be pretty straight forward, but as i'm finding it is a bit of a different beast...
There are a couple of different technologies that you can leverage to accomplish your goals. The description you gave doesn't give me enough information to understand which of the many windows, inspector windows, and MailItem objects you might use. The technology you use depends on the "context" of the user scenario. Do you need the user to have a specific Appointment inspector window open? Or do you want the user to be able to get to your control from the main Outlook window and the menu options? I suggest looking at the Custom Task Pane features in VSTO. You can put a web control and other UI elements inside of the Custom Task Pane. The CTP can be located inside of an Appointment inspector window, or inside of a Task inspector window, or pretty much any inspector windows.