Form Region, Task Pain, Ribbon Extension - which way is best?

Status
Not open for further replies.
C

cGtlbGxleQ

I have Visual Studio 2005, VSTO SE, and I'm writing in C#.

I've been tasked with writing my first Add-In and it will be for Outlook 2007.

I've completed the "Walkthroughs" for:

1) Customizing the Ribbon for Outlook 2007

http://msdn.microsoft.com/en-us/library/bb226712.aspx

2) Creating an Outlook Form Region

http://msdn.microsoft.com/en-us/library/aa942741.aspx

I've learned that there are such things as "Custom Task Panes" as well as

"Custom Form Regions"

My Add-In centers around Microsoft.Outlook.Appointment.

What I am to develop is an Add-In that Extends the Outlook 2007 Appointment

Ribbon to provide a:

1. A "Configuration" button that when pressed presents a form to be

filled out containing ODBC connection information (e.g. Server, Port,

Username, Password), an OK and Cancel button

2. A "Synch Assignment" check-box that when toggled "ON" indicates that

the Outlook 2007 Appointment information is to be saved to an SQL database.

I want to know what you recommend regarding two things:

1. Do I want to use a Custom Task Pane connected to the Ribbon to gather

my ODBC connection information, or am I supposed to use a Custom Form Region?

Not sure when it is best to use one versus the other.

2. How do you hook the "Save & Close" and "Send" events on the Appointment

Ribbon? When those buttons are clicked, I want to save the Appointment

information to an SQL database "if-and-only-if" the "Synch Assignment"

Check-Box is "ON"

Thanks for your help!
 
K

Ken Slovak - [MVP - Outlook]

A form region would require either using a custom message class or having

the form region on all appointments. There is also minimal control over

displaying and hiding a form region or expanding or compressing it.

It's really 6 of one, half dozen of the other. It really depends on the look

and feel you want for your UI. I've used both form regions and ribbon

controls that open/close a task pane depending on the project.

Trap the Send() event on the item that's opened for knowing when the item is

sent out. Trap the Close() and Write() events to catch saving and closing

the item and its Inspector.

"pkelley" <pkelley> wrote in message

news:694B1EF6-1EE0-46FE-B366-9D62E0751532@microsoft.com...
> I have Visual Studio 2005, VSTO SE, and I'm writing in C#.
> I've been tasked with writing my first Add-In and it will be for Outlook
> 2007.
> I've completed the "Walkthroughs" for:
> 1) Customizing the Ribbon for Outlook 2007
> http://msdn.microsoft.com/en-us/library/bb226712.aspx

> 2) Creating an Outlook Form Region
> http://msdn.microsoft.com/en-us/library/aa942741.aspx

> I've learned that there are such things as "Custom Task Panes" as well as
> "Custom Form Regions"

> My Add-In centers around Microsoft.Outlook.Appointment.

> What I am to develop is an Add-In that Extends the Outlook 2007
> Appointment
> Ribbon to provide a:
> 1. A "Configuration" button that when pressed presents a form to be
> filled out containing ODBC connection information (e.g. Server, Port,
> Username, Password), an OK and Cancel button
> 2. A "Synch Assignment" check-box that when toggled "ON" indicates that
> the Outlook 2007 Appointment information is to be saved to an SQL
> database.

> I want to know what you recommend regarding two things:

> 1. Do I want to use a Custom Task Pane connected to the Ribbon to gather
> my ODBC connection information, or am I supposed to use a Custom Form
> Region?
> Not sure when it is best to use one versus the other.

> 2. How do you hook the "Save & Close" and "Send" events on the
> Appointment
> Ribbon? When those buttons are clicked, I want to save the Appointment
> information to an SQL database "if-and-only-if" the "Synch Assignment"
> Check-Box is "ON"

> Thanks for your help!
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M Outlook 2010 How could I globally redesign an outlook template form/region/inspector template used to display mail lists or an individual mails? Outlook VBA and Custom Forms 0
A ItemEvents_10_AfterWriteEventHandler is triggers for all instances of the form region Outlook VBA and Custom Forms 1
B Disabling form region change Using Outlook 0
T Outlook replacement form region using a "parent" Outlook VBA and Custom Forms 1
E VSTO 2008 how to bind Form Region controls to Item data fields Outlook VBA and Custom Forms 2
E VSTO 2008 how to bind Form Region controls to Item data fields Outlook VBA and Custom Forms 3
E Accessing a Form Region from an Inspector Outlook VBA and Custom Forms 3
E Accessing a Form Region from an Inspector Outlook VBA and Custom Forms 3
M Form region not appearing on machines I deploy to? Outlook VBA and Custom Forms 6
M Delete key in form region textbox deleting email instead Outlook VBA and Custom Forms 2
M How to change the Title of a form region at runtime? Outlook VBA and Custom Forms 3
M How to read color of form region title? Outlook VBA and Custom Forms 1
M Can I embed ribbon item into form region? Outlook VBA and Custom Forms 2
E Preview of Form Region Outlook VBA and Custom Forms 4
K Accessing contact's custom properties in a Outlook 2007 form region Outlook VBA and Custom Forms 1
R Form Region Outlook VBA and Custom Forms 3
T Form Region Freezing Outlook VBA and Custom Forms 1
W Designer Form 2013 and Script ? how ? Outlook VBA and Custom Forms 1
J Read Outlook Form fields Outlook VBA and Custom Forms 3
V Compound IF, OR, AND in Outlook form Outlook VBA and Custom Forms 4
J custom form not displaying pictures Outlook VBA and Custom Forms 7
I Button PDF in Outlook Contact custom form Outlook VBA and Custom Forms 1
K Font Sizing in Custom Form Regions for Contacts Outlook VBA and Custom Forms 1
V Validating Outlook form with "OR" and "AND" Outlook VBA and Custom Forms 1
A How to stop user form from disapearing once mail window is closed? Outlook VBA and Custom Forms 0
K can't get custom form to update multiple contacts using VBA Outlook VBA and Custom Forms 3
V Form data not sending for some users Outlook VBA and Custom Forms 2
H Custom Outlook Contact Form VBA Outlook VBA and Custom Forms 1
witzker HowTo Change message Class of contact form Outlook VBA and Custom Forms 0
A VBscript stops running after updating form Outlook VBA and Custom Forms 1
witzker HowTo start a macro with an Button in OL contact form Outlook VBA and Custom Forms 12
D Emailed form is blank Outlook VBA and Custom Forms 0
F Validation on custom task form after task acceptance Outlook VBA and Custom Forms 1
C Add Form to Appointments Received, Automatically Outlook VBA and Custom Forms 6
V Date and/or time error in Outlook Form Outlook VBA and Custom Forms 0
A Form Position with Dual Monitors Outlook VBA and Custom Forms 2
I Error saving screenshots in a custom form in outlook 2016, outlook 365 - ok in outlook 2013, outlook 2010 Outlook VBA and Custom Forms 5
M VbScript for Command Button on Contacts Custom Form Using Outlook 1
G Other users can't see P.2 with custom fields in Form Outlook VBA and Custom Forms 0
O Create a custom contact form - questions before messing things up... Outlook VBA and Custom Forms 4
L Custom Form Tutoral? Outlook VBA and Custom Forms 6
D Lost Access to Custom Form Outlook VBA and Custom Forms 4
A Form style totally changes Outlook VBA and Custom Forms 2
M vCard does not have user-defined fields from my custom contact form (365) Using Outlook 1
S Outlook Custom Form Scripting only working when clicking on "Run this form" Outlook VBA and Custom Forms 2
V Making a Date field mandatory in outlook form Outlook VBA and Custom Forms 2
R Add 'Company' to Select Names Form Using Outlook 1
Victor_50 Outlook 2013 Custom Contact Form starts with "E-mail 2" Outlook VBA and Custom Forms 2
C Custom Form (seperate layout pages and message reading pane) Outlook VBA and Custom Forms 0
C Reading Pane for Custom Form Outlook VBA and Custom Forms 2

Similar threads

Top