A few customers have asked about how to run the time-reporting add-in that was published on MSDN as Creating a Simple Time-Reporting Tool Based on the Outlook 2010 Calendar, and discussed in the blog post Time-Reporting Tool now Available as an Outlook Add-in!
In general, because the main reason for us to provide code samples is to demonstrate programming techniques that use our object models, we typically provide only the source code for add-ins. For those of you interested in further customizing the add-ins, you are welcome to do so by downloading the source code, and using Microsoft Visual Studio to modify the code for your specific purposes.
For those of you who have Microsoft Visual Studio 2010 and would like to run a sample add-in, you can start the add-in from Visual Studio by following this process:
As an example, to run the time-reporting add-in, you would need to have Microsoft Outlook 2010 installed. After running the above procedure in Visual Studio, Outlook opens and you should see the Add-Ins tab on the explorer ribbon in Outlook. Click the Add-Ins tab, and you can proceed to use the add-in as described in the article “Creating a Simple Time-Reporting Tool Based on the Outlook 2010 Calendar”.
For those of you who do not have Visual Studio 2010 but would like to try the time-reporting add-in, I have attached an installation package in a zip file to this blog post for your convenience.
Note: The time-reporting add-in was developed to illustrate programming techniques and is not intended to be a commercial product. The installation package was created using Visual Studio 2010 and the same add-in source code that is available for download. The package is provided for convenience, and has not been code-signed. After you run Setup in step 3 of the process below, you will see a dialog box that says “Publisher cannot be verified. Are you sure you want to install this customization.” Click Install if you want to proceed to try running the add-in.
Follow these steps to use the attached installation package to install and run the time-reporting add-in:
If you are interested in creating your own installation package, you can see Deploying Office Solutions for more information.
Attaching a file to a Microsoft Outlook mail item is one of the most popular customer actions in Outlook.
Naturally, many power users also ask how to do this programmatically. The Outlook object model provides the Attachment object, Attachments.Add method, and an Attachments property for each of the Outlook item objects (for example, mail, appointment, contact, meeting, and task items), to support adding an attachment to an Outlook item. You can attach a copy of a file, an Outlook item like a message or contact, or an Object Linking and Embedding (OLE) object to an Outlook item. In particular, if you are attaching a file to a mail item that uses Rich Text Format (RTF), you can also specify the location to place the attachment in the body of the mail message, and the display name of the attachment.
Ken Getz, a Microsoft MVP and an expert in a multitude of technologies including Microsoft Office, Microsoft Visual Studio, Visual Basic, and C#, recently contributed a set of four code samples to illustrate a few tasks around attachments.
The sample code in these topics is presented in both C# and Visual Basic. Hope you can adapt the code to suit your scenarios.