retrieving values from custom outlook form using vsto and c#

N

nitro

Hi,

I'm a newbe to all of these technologies so please bare with me.

I have a .oft created, which is basically a meeting request form with a
couple radio buttons and a text box present in a new tab. I am able to
display the form using the code below but I can't seem to access the values
that the users enter into these additional fields. Essentially, what I'm
trying to do is to present this form to a user and obtain their inputs from
the form before they hit send. Can someone please tell me how to add to the
code below in order to retrieve (and even save within Outlook) the values of
these additional fields that I've defined.


<code>
Outlook._Application olApp = new Outlook.ApplicationClass();
Outlook._NameSpace olNs = olApp.GetNamespace("MAPI");
Outlook.MAPIFolder foldername =
olNs.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar);
Outlook._AppointmentItem oAppointment =
(Outlook._AppointmentItem)olApp.CreateItemFromTemplate("C:/OutlookForms/TelePresenceForm2.oft", foldername);
oAppointment.Display(true);
</code>


Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top