How to use WordMail Editor? ... with .Net 2.0 & Office 2003 (Word/ Outlook) ... in a c# application

  • Thread starter Thread starter Gordian
  • Start date Start date
G

Gordian

Good Day!

Context
--------
My question is about .NET2.0 (c#) and Office 2003 (Word/Outlook).

I try to write an c# application, which uses the Word-Editor(in some
postings called WordMail) for emailing.


What I know
-----------
I found a way to display the WordMail-Window indirectly with the aid of
wdDialogFileNew:

.............................................
private void button1_Click(object sender, EventArgs e)
{
showDialog(Word.WdWordDialog.wdDialogFileNew);
}

private void showDialog(Word.WdWordDialog dialogId)
{
Object timeOut = Type.Missing;
Word.Dialog dlg;
dlg = appWord.Dialogs[dialogId];
dlg.Show(ref timeOut);
}
................................................


Problem
--------
I cannot investigate how to display the WordMail-Window directly with
c#-code e.g. by clicking on a LinkLabel.

Does someone knows how I can do this?
Thank You for your Tips

Gordian
 
I'm not a C# programmer, but I do know that if you want to display a new message using WordMail as the editor (a) the user must already have WordMail set as the editor and (b) you'd use standard Outlook automation code (Application.CreateItem, MailItem.Display) from the LinkLabel's LinkClicked event handler.
 
Back
Top