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

Problems while integrating with outlook 2007



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old November 16th 06, 10:25 AM posted to microsoft.public.outlook.program_addins
ranga
external usenet poster
 
Posts: 2
Default Problems while integrating with outlook 2007

Hi All,

I work for a adobe product called Contribute, we have Microsoft Office
plugin integrated to our product. To be specific, When we have opened
an existing mail item in outlook, we can select some portion of the
mail data or full mail content and can open it in our contribute
application for futher contribute specific operations.

And we had integrated office 2003 also with our product, now i am
checking whether the same code works for office 2007 or it needs
changes.

I came across several issues and started debuging it.

First of all, in office 2007, the mail content gets opened in
wordeditor (enum value is Outlook:lEditorWORD) while office 2003
used to open the mail content in html editor (enum value in msoutl.tlh
is Outlook:lEditorHTML).

In our code while looking for the selection in the opened mail item, we
used to use API which are for html editor as shown below


//See if there is a selection in the document
IDispatch* pHtmlEditor = NULL;
m_Inspector-get_HTMLEditor(&pHtmlEditor);

if(pHtmlEditor)
{
CComQIPtr IHTMLDocument2 html(pHtmlEditor);
ATLASSERT(html);
CComPtr IHTMLSelectionObject selection;
html-get_selection(&selection);
if(!selection)
{
ATLASSERT(selection);
return;
}
IDispatch* pRange = NULL;
selection-createRange(&pRange);
if(pRange)
{
CComQIPtrIHTMLTxtRange textRange(pRange);
BSTR pText = NULL;
textRange-get_text(&pText);
BSTR pHtmlText = NULL;
textRange-get_htmlText(&pHtmlText);


But now with office 2007, since outlook always opens in wordeditor ,
our APIs for html editor doesnot work.
And the interfaces IHTMLDocument2 ,IHTMLSelectionObject ,IHTMLTxtRange
etc.. works only for html editor not for wordeditor.

Now i want to figureout how to implement the same thing for word
editor.

Has any come across this issues, or anyone has any pointers about how
to go ahead to get the selection worked for outlook2007.

Thanks in advance
--ranga

 




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
redering problems outlook 2007 ldm2331 Outlook - General Queries 5 September 5th 06 09:14 PM
Problems with new outlook 2007 [email protected] Outlook - General Queries 2 May 31st 06 10:44 AM
Outlook 2007 problems BillR [MVP] Outlook - Installation 1 May 26th 06 10:32 AM
Integrating Outlook with Norton AntiSpam - Problem [email protected] Outlook - General Queries 4 May 1st 06 11:12 PM
Integrating a .pst backed up calendar into a new copy of Outlook ang Outlook - Calandaring 8 February 20th 06 10:50 AM


All times are GMT +1. The time now is 01:02 PM.


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.