Said El haddati

Hi folks,
I'd like to develop an outlook 2003 add-in that adds a tab in the appointment form (file -> new -> appointment). This tab mast allow me to enter an appointment, a location, a deadline... I need to do this in C# but I don't find information nor in MSDN or other forums to do it.
Can you please show me an example or what tool I've to use to do that.

Thanks in advance

AC



Re: Visual Studio Tools for Office C# outlook add-in: Add-in for timetable management

Ji Zhou ¨C MSFT

Hi,

From your description, I think you are just trying to add a FormRegion to Outlook appointment, right Surely, this can be done. There are some examples on MSDN about how to create FormRegion in Outlook 2007. As to Outlook 2003, the ways to finish that are totally same:

1. You should design a Form in Outlook 2003 for appointment item. And Save your custom form(.ofs file) in the local hard disk.

2. Then use VSTO SE to create a Outlook 2003 Add-in. Add your form as a resource in your project.

3. Add a new Class into your project, which implement the Outlook.FormRegionStartup interface.

4. You can get the form and its controlsĄ¯ reference in the new added Class and write your codes to do customization.

To see a more detailed walk through, please refer this link:

http://msdn2.microsoft.com/en-us/library/aa942741(VS.80).aspx

If my any misunderstanding about your issue or your any question about this walk through, please feel free to contact me. J

Thanks

Ji






Re: Visual Studio Tools for Office C# outlook add-in: Add-in for timetable management

Said El haddati

Hi Ji,

Thank you so much for your repley. I tried to follow the instractions in the walk through and I get these errors:
Error 1 The type or namespace name 'FormRegionStartup' does not exist in the namespace 'Microsoft.Office.Interop.Outlook' (are you missing an assembly reference )
Error 2 The type or namespace name 'FormRegion' does not exist in the namespace 'Microsoft.Office.Interop.Outlook' (are you missing an assembly reference )
Error 3 The type or namespace name 'OlkTextBox' does not exist in the namespace 'Microsoft.Office.Interop.Outlook' (are you missing an assembly reference )
Error 4 The type or namespace name 'OlkCommandButton' does not exist in the namespace 'Microsoft.Office.Interop.Outlook' (are you missing an assembly reference )
Error 5 The type or namespace name 'OlFormRegionMode' does not exist in the namespace 'Microsoft.Office.Interop.Outlook' (are you missing an assembly reference )
Error 6 The type or namespace name 'OlFormRegionSize' does not exist in the namespace 'Microsoft.Office.Interop.Outlook' (are you missing an assembly reference )
Error 7 The type or namespace name 'FormRegion' does not exist in the namespace 'Microsoft.Office.Interop.Outlook' (are you missing an assembly reference )
Error 8 The type or namespace name 'OlFormRegionIcon' does not exist in the namespace 'Microsoft.Office.Interop.Outlook' (are you missing an assembly reference )

In fact it seems that the compiler doesn't find all these classes or interfaces in the Outlook library. Maybe I need to add some references or it's special things for outlook 2007

Thank you

Said





Re: Visual Studio Tools for Office C# outlook add-in: Add-in for timetable management

Said El haddati

Another thing, in outlook 2003, I van create only forms with the extensions: oft, msg, ics, vcs.
So I used the .oft extension

Said






Re: Visual Studio Tools for Office C# outlook add-in: Add-in for timetable management

Ji Zhou ¨C MSFT

Hi Said,

I am sorry I am totally wrong. I do not know where my head was yesterday to make such a mistake. Yes, FormRegionStartup interface is a new concept which Outlook 2007 takes to us. It is only available in Outlook 2007. In Outlook 2003, it seems a big challenge to custom the form.

Thanks

Ji






Re: Visual Studio Tools for Office C# outlook add-in: Add-in for timetable management

Ji Zhou ¨C MSFT

Hi Said,

In Outlook2003, we can create a form and publish it to a folder, and set it as the default item template of that folder by modifying the registry. Refer this:

http://office.microsoft.com/en-us/outlook/HA012106101033.aspx

Thanks

Ji






Re: Visual Studio Tools for Office C# outlook add-in: Add-in for timetable management

Sue Mosher - Outlook MVP

For your purpose, you should publish the form, not save it as an external file. .oft files are good as backups of published forms, though.