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 » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

IE popup in Outlook 12.0



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 18th 08, 06:10 PM posted to microsoft.public.outlook.program_forms
malar
external usenet poster
 
Posts: 2
Default IE popup in Outlook 12.0

We have created an outlook addin, in which clicking a button an IE window is
popped up. We use the InternetExplorer.Navigate2() method to popup the new
window which is present in the Interop.SHDocVw dll. The window opens "always
on top" with Outlook 2003 and IE6 or 7 provided the Microsoft Outlook 11.0
object library (9.2) .

We are in the process of migration to Outlook 2007 and we included Microsoft
Outlook 12.0 object library 12.0.4518.1014 to build the solution. No code
change on the Navigation part. But we see a different behaviour. Its always
displayed as minimized blinking window in the taskbar. The end users have to
explicitly click the minimized tab to bring the window to the foreground.



Here is the code sample



Private Sub btnAttachToDIAMSXe_Click(ByVal ctrl As CommandBarButton, ByRef
cancel As Boolean)

....................

Dim ieCtrl As New InternetExplorer

....................

....................

....................

ieCtrl.Navigate2("http://localhost/....", 1, "DIAMSXe External
Interface", postData, postHeader)

ieCtrl.Visible = True

....................

End Sub



Does anyone have any idea why the popup window appears minimized with the
Office 2007 and IE7 combination ? or is there a better way of

popping up a window through outlook addins.

  #2  
Old December 18th 08, 07:47 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default IE popup in Outlook 12.0

I usually don't limit things to IE, I try to use the default browser if
there is one. I get that using the following C# code, then I start the
browser with the URL:

RegistryKey key =
Registry.ClassesRoot.OpenSubKey(@"HTTP\shell\open\ command", false);
string browser = key.GetValue(null).ToString().ToLower().Replace("\ "",
"");
if ((!browser.EndsWith("exe")
{
browser = browser.Substring(0, browser.LastIndexOf(".exe") + 4);
}

Process p = new Process();
p.StartInfo.FileName = browser;
p.StartInfo.Arguments = url; // url is where we want to go
p.Start();

This snippet of course has no exception handling, which should be added.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"malar" wrote in message
...
We have created an outlook addin, in which clicking a button an IE window
is
popped up. We use the InternetExplorer.Navigate2() method to popup the new
window which is present in the Interop.SHDocVw dll. The window opens
"always
on top" with Outlook 2003 and IE6 or 7 provided the Microsoft Outlook 11.0
object library (9.2) .

We are in the process of migration to Outlook 2007 and we included
Microsoft
Outlook 12.0 object library 12.0.4518.1014 to build the solution. No code
change on the Navigation part. But we see a different behaviour. Its
always
displayed as minimized blinking window in the taskbar. The end users have
to
explicitly click the minimized tab to bring the window to the foreground.



Here is the code sample



Private Sub btnAttachToDIAMSXe_Click(ByVal ctrl As CommandBarButton, ByRef
cancel As Boolean)

....................

Dim ieCtrl As New InternetExplorer

....................

....................

....................

ieCtrl.Navigate2("http://localhost/....", 1, "DIAMSXe External
Interface", postData, postHeader)

ieCtrl.Visible = True

....................

End Sub



Does anyone have any idea why the popup window appears minimized with the
Office 2007 and IE7 combination ? or is there a better way of

popping up a window through outlook addins.


  #3  
Old December 22nd 08, 02:41 PM posted to microsoft.public.outlook.program_forms
TMJNSK
external usenet poster
 
Posts: 6
Default IE popup in Outlook 12.0

Thanks for the response.

Our product purely support IE, No other browser.

If we use eCtrl.Navigate2, it opens IE and the current process will
not wait for anything and it will be free. If we use Process(), will
current process be free after calling p.start()?

  #4  
Old December 22nd 08, 03:12 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default IE popup in Outlook 12.0

If I understand what you're asking the browser window opens non-modally and
your code continues as does the user interface.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"TMJNSK" wrote in message
...
Thanks for the response.

Our product purely support IE, No other browser.

If we use eCtrl.Navigate2, it opens IE and the current process will
not wait for anything and it will be free. If we use Process(), will
current process be free after calling p.start()?


  #5  
Old December 22nd 08, 05:10 PM posted to microsoft.public.outlook.program_forms
TMJNSK
external usenet poster
 
Posts: 6
Default IE popup in Outlook 12.0

We are passing lot of form variable which cannot be passed by query
string (special char) on the URL. How can i do the same process
( ).

Thanks
  #6  
Old December 22nd 08, 08:09 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default IE popup in Outlook 12.0

That you'd have to ask in an IE group.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"TMJNSK" wrote in message
...
We are passing lot of form variable which cannot be passed by query
string (special char) on the URL. How can i do the same process
( ).

Thanks


 




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
Popup with Outlook Exchange Sam Outlook - Installation 0 February 1st 06 06:41 PM
Popup with Outlook Exchange Sam Add-ins for Outlook 0 February 1st 06 06:41 PM
Outlook Popup Sam Outlook - General Queries 0 February 1st 06 06:37 PM
Outlook Popup Sam Outlook - Installation 0 February 1st 06 06:37 PM
Outlook Popup Sam Add-ins for Outlook 0 February 1st 06 06:37 PM


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