Solved

Best way to programmatically create a custom outlook form

Posted on 2009-04-08
9
550 Views
Last Modified: 2012-05-06
Hello.

I have been tasked with creating a customized Outlook appointment form (Exchange 2003) and writing the contents of the form to a sql database which will be pulled by a SharePoint Calendar.  I have been searching online for ways to extend Outlook through Visual Studio.  As a C# programmer, is it possible to create a customized Outlook appointment form (add-in perhaps and winform)?  Can anyone recommend a tutorial to send me in the right direction?  What I am most concerned is how the form would be opened in Outlook.    Please advise.  Thanks in advance.  
0
Comment
Question by:ayoZen
  • 5
  • 4
9 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 200 total points
Comment Utility
Hello again, ayoZen.

As I mentioned in your question from yesterday it is not possible to create a custom Outlook form outside of Outlook.  The ONLY way to create a custom Outlook form is via the form designer that's built into Outlook.  Custom Outlook forms are constrained to being a modified version of an existing Outlook form.  A custom appointment form would have to be based on Outlook's built in appointment form.  You could write an add-in that uses a WinForm, but Outlook will never see this as an Outlook form and it will never behave like an Outlook form.  You can extend Outlook via Visual Studio by writing an add-in.  By extend I mean add behavior to Outlook that it does not already possess.

Based on the task you outlined above you can accomplish this by

1.  Creating a custom Outlook form using Outlook's form designer

2.  Writing code behind the form to add logic and functionality to the form.  That code MUST be written in VBScript.  if you take this approach, then you will only need to deploy the form.  The code behind the form is actually part of the form.

3.  As an alternative to #2 you can create an add-in that complements the form.  Add-ins can be written in C#.  If you select this approach, then you will have to deploy the form and the add-in to every computer that will ever use the form.
0
 

Author Comment

by:ayoZen
Comment Utility
I see.  Adding to every computer would be a pain.  Please bear with me.  Is it possible to deploy the form and add-in on the exchange server?   Thus, the form would be available to all users within the specified group.
0
 
LVL 76

Expert Comment

by:David Lee
Comment Utility
The form, yes.  The add-in, no.  Forms are published to either a folder or a form library.  Add-ins are compiled and must be installed at every computer that's going to use them.  You can use an automated tool like Microsoft SMS, but you can't just drop them on the Exchange server.  
0
 

Author Comment

by:ayoZen
Comment Utility
What is Microsoft SMS?  How does this work?
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:ayoZen
Comment Utility
Oh...one more question,  as i looked at the alternatives you outlined, #2, you stated that I would only need to deploy the form:

<<2.  Writing code behind the form to add logic and functionality to the form.  That code MUST be written in VBScript.  if you take this approach, then you will only need to deploy the form.  The code behind the form is actually part of the form.>>

By deploying the form, does that mean that I could then place the form on the exchange server?  I need to be able to swap my custom form as a default main form and only for a particular AD group.  

thanks in advance for your patience.

0
 
LVL 76

Expert Comment

by:David Lee
Comment Utility
Forms are normally deployed by publishing them to the organizational forms library.  That will make the form available to everyone, but it won't make it the default form.  That's done by making a change in the registry.  You can also publish a form to a particular folder and set it to be the default form for that folder.  
0
 

Author Comment

by:ayoZen
Comment Utility
thanks so much for your help!
0
 

Author Closing Comment

by:ayoZen
Comment Utility
Thank you!
0
 
LVL 76

Expert Comment

by:David Lee
Comment Utility
You're welcome.  Glad I could help.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Learn more about how the humble email signature can be used as more than just an electronic business card. When used correctly, a signature can easily be tailored for different purposes by different departments within an organization.
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now