A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

A different problem with Outlook Addin



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old April 19th 06, 08:54 AM posted to microsoft.public.outlook.program_addins
Ram
external usenet poster
 
Posts: 19
Default A different problem with Outlook Addin


Hi ,

I have implemented addin for MSOutLook using VC++ 6.0. Here i have displayed a image and on that i have display some images,when i click that image that image should be aded to mail(which is in html mail format). In this i have added html code the mail by using following code.


while doing this i have added the html code the mail body, i have got one problem. here it is
HRESULT hr;

IDispatch *Pdisp;

IHTMLDocument2Ptr htmdocument=NULL;

IHTMLElement *htmelement;

BSTR m_bstr;

hr= ppt-ActiveInspector(&m_inspect);

hr=m_inspect-get_HTMLEditor(&Pdisp);

hr=Pdisp-QueryInterface(IID_IHTMLDocument2,(void**)&htmdoc ument);

hr=htmdocument-get_body(&htmelement);

htmelement-get_innerHTML(&m_bstr);

CComBSTR m_temp=CComBSTR(m_bstr);

m_temp.AppendBSTR(text);

m_temp.CopyTo(&m_bstr);


CString m_koti=CString(m_bstr);

MessageBox(NULL,m_koti,NULL,MB_OK);

htmdocument-put_designMode(CComBSTR("On"));

hr=htmelement-put_innerHTML(m_bstr);

htmelement-get_innerHTML(&m_bstr);

CString m_str=CString(m_bstr);

MessageBox(NULL,m_str,NULL,MB_OK);



This is the code which has been from mail . The last line which is in green colour i have added .



!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"

HTMLHEADTITLEhi/TITLE

META http-equiv=Content-Type content="text/html; charset=us-ascii"

META content="MSHTML 6.00.2800.1106" name=GENERATOR/HEAD

BODY

PFONT face=Arial size=2Hi this is test mail/FONT /P

PFONT face=Arial size=2By,/FONT BRFONT face=Arial size=2koti/FONT

/PA href="http://www.smileycapital.com"IMG

src="http://img.smileycapital.com/images/Animals/animal_5019.gif"

border=0/A/BODY/HTML



But after adding the html code to mail ,what is the adding is following code

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"

HTMLHEADTITLEhi/TITLE

META http-equiv=Content-Type content="text/html; charset=us-ascii"

META content="MSHTML 6.00.2800.1106" name=GENERATOR/HEAD

BODY

PFONT face=Arial size=2Hi this is test mail/FONT /P

PFONT face=Arial size=2By,/FONT BRFONT face=Arial size=2koti/FONT

/PA href="BLOCKED::http://www.smileycapital.com"IMG

src="BLOCKED::http://img.smileycapital.com/images/Animals/animal_5019.gif"

border=0/A/BODY/HTML



Why the BLOCKED word is added to the code ,which is i am not added. why this code is adding. How can i avoid that proble. Plz suggest any solution?




--
Regards,

RamakoteswaraRao Koti
Software Engineer,
Nannacomputers Pvt Ltd

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save a note in an outlook addin. Anil Kumar Gupta Outlook and VBA 1 April 7th 06 06:39 AM
OCX problem in VB Outlook AddIn Rui Oliveira Add-ins for Outlook 0 March 31st 06 05:42 PM
unload COM addin problem David Cebrian Add-ins for Outlook 3 February 9th 06 11:26 AM
Outlook Remains in TaskList after closing (with AddIn) Jeff Simcock Add-ins for Outlook 2 February 2nd 06 04:42 AM
Outlook addin help Melbin Outlook - Using Forms 0 January 24th 06 01:12 PM


All times are GMT +1. The time now is 11:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.