N
NArcher
Hi All,
I am posting this thread since I am in URGENT need for an alternative to the
problem of displaying the html form and controls in the mail that is sent
programatically using a windows application that uses a Office Interop to
create a Html form body that has controls like check boxes and textboxes.
When I am sending that mail to a XP client the forms are seen correctly
however if the same mail goes to a VISTA user the VISTA user having Office
2007 is not able to see the contols that are there in the Mail Body. Though
the body is constructed using the same .html template this form is not
showing up controls on a VISTA user it shoes something like { } { }..
Can anyone please suggest me a solution to this please? Following is the
snippet of how is the mail prepared.
Please help me with your expertise in this area and I shall be obliged.
Thanks,
Code Snippet: -
.......
string sSource = @"C:\BodyTemplate.html";
StreamReader srRe = new StreamReader(sSource);
string strData = srRe.ReadToEnd();
strData = strData.Insert(strData.IndexOf("id='txtcname'>") +
("id='txtcname'>".Length), "Name");
Outlook._MailItem oMsg =
(Outlook._MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
oMsg.Subject ="Test Subject";
oMsg.To = (e-mail address removed);
oMsg.HTMLBody = strData;
oMsg.BodyFormat = Microsoft.Office.Interop.Outlook.OlBodyFormat.olFormatHTML;
oMsg.Send();
I am posting this thread since I am in URGENT need for an alternative to the
problem of displaying the html form and controls in the mail that is sent
programatically using a windows application that uses a Office Interop to
create a Html form body that has controls like check boxes and textboxes.
When I am sending that mail to a XP client the forms are seen correctly
however if the same mail goes to a VISTA user the VISTA user having Office
2007 is not able to see the contols that are there in the Mail Body. Though
the body is constructed using the same .html template this form is not
showing up controls on a VISTA user it shoes something like { } { }..
Can anyone please suggest me a solution to this please? Following is the
snippet of how is the mail prepared.
Please help me with your expertise in this area and I shall be obliged.
Thanks,
Code Snippet: -
.......
string sSource = @"C:\BodyTemplate.html";
StreamReader srRe = new StreamReader(sSource);
string strData = srRe.ReadToEnd();
strData = strData.Insert(strData.IndexOf("id='txtcname'>") +
("id='txtcname'>".Length), "Name");
Outlook._MailItem oMsg =
(Outlook._MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);
oMsg.Subject ="Test Subject";
oMsg.To = (e-mail address removed);
oMsg.HTMLBody = strData;
oMsg.BodyFormat = Microsoft.Office.Interop.Outlook.OlBodyFormat.olFormatHTML;
oMsg.Send();