Solved

Best way to programmatically create a custom outlook form

Posted on 2009-04-08
9
629 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 200 total points
ID: 24098458
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
ID: 24098571
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
ID: 24098613
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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 

Author Comment

by:ayoZen
ID: 24148253
What is Microsoft SMS?  How does this work?
0
 

Author Comment

by:ayoZen
ID: 24148369
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
ID: 24153413
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
ID: 24185898
thanks so much for your help!
0
 

Author Closing Comment

by:ayoZen
ID: 31568078
Thank you!
0
 
LVL 76

Expert Comment

by:David Lee
ID: 24189004
You're welcome.  Glad I could help.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

691 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