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

Opening browser within outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 22nd 07, 03:36 PM posted to microsoft.public.outlook.program_addins
RK
external usenet poster
 
Posts: 5
Default Opening browser within outlook

I would like to launch a link to a web application
and browse this page from within (Embedded ) Outlook (using c#).
I dont want to use a folder structure and set the homepage .

I got a link http://www.outlookcode.com/d/tips/formhyperlink.htm to do this
.. Is there any other related links to this .

Thanks
RK

Ads
  #2  
Old January 26th 07, 12:53 AM posted to microsoft.public.outlook.program_addins
IceKettle
external usenet poster
 
Posts: 21
Default Opening browser within outlook

I'm using C++.The same work I do as follows(You can see I do it with OOM):
{
HRESULT hr = S_FALSE;
try{
CComPtrOutlook::_Explorer spExplorer ;
hr = COOMFunc::ActiveExplorer((LPDISPATCH*)&spExplorer) ;
if( S_OK != hr )
throw (hr);

//Then we need to have a pointer to the commandbars, that is the
toolbars in the UI
Office::_CommandBarsPtr spCmdBars = NULL;
//CComPtr Office::_CommandBars spCmdBars = NULL;
hr = spExplorer-get_CommandBars(&spCmdBars);
if(FAILED(hr))
throw (hr);

Office::CommandBarPtr spCmdBar = NULL;
CComVariant vWeb(_T("Web"));
hr = spCmdBars-get_Item(vWeb,&spCmdBar);
if( FAILED(hr))
throw (hr);
if( NULL == spCmdBar )
throw (S_FALSE);
Office::CommandBarControlsPtr spCmdBarCtrls = NULL;
spCmdBarCtrls = spCmdBar-GetControls();
if( NULL == spCmdBarCtrls)
throw (S_FALSE);
Office::CommandBarControlPtr spCmdBarCtrl = NULL;
CComVariant vAddr(_T("Address:"));
spCmdBarCtrl = spCmdBarCtrls-GetItem(vAddr);
if( NULL == spCmdBarCtrl)
throw (S_FALSE);
//spCmdBarCtrl-PutVisible(VARIANT_FALSE);
spCmdBarCtrl-PutEnabled(VARIANT_TRUE);

// The really Address control is a combox,so...
Office::_CommandBarComboBoxPtr spCmdComboxPtr = spCmdBarCtrl;
BSTR bstr = strSearch.AllocSysString();// strSearch is an URL link
_bstr_t bsDest;
bsDest.Attach(bstr);
spCmdComboxPtr-PutText(bsDest);
bsDest.Detach();
::SysFreeString(bstr);

spCmdBarCtrl-Execute();

//spCmdBarCtrl-PutVisible(vbVisible);

}
catch(...)
{
ShellExecute(NULL, _T("open"), strSearch, 0, 0, 0);
}
}
"RK" ...
I would like to launch a link to a web application
and browse this page from within (Embedded ) Outlook (using c#).
I dont want to use a folder structure and set the homepage .

I got a link http://www.outlookcode.com/d/tips/formhyperlink.htm to do
this
. Is there any other related links to this .

Thanks
RK



 




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
Outlook 2007 opening URLs in new browser window Nocturnal Outlook - General Queries 3 May 25th 06 08:11 AM
How do I enable opening a browser from clicking an email link? Admelior Outlook - Installation 2 April 23rd 06 06:46 PM
When opening e-mail sometimes get message "locate link browser" NEED AN ANSWER Outlook - Installation 1 April 19th 06 03:58 AM
Opening Links In The Wrong Browser ret2go Outlook Express 4 March 30th 06 02:34 AM
Opening Link in OE into Designated Browser Greg Matthews Outlook Express 3 February 7th 06 04:15 AM


All times are GMT +1. The time now is 08:53 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.