Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2006

Tip: Looking for answers? Try searching our database.

Open IE from infopath button click

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jack - 13 Mar 2006 17:19 GMT
In my infopath documents there are buttons that when clicked should
open a new IE window and show a specific page on my site.  I've tried
the standard code as given below, but it opens the window beneath the
infopath form.  I need the zorder to be fixed so the IE window is on
top.  This works fine when I use a hyperlink on the infopath form
instead of a button, but the users want a button.  The code I'm using
is:

Dim ie As Object
ie = CreateObject("InternetExplorer.Application")
ie.Navigate(strURL)
ie.Visible = True

I tried another technique, in which the document came up on top, but
the problem was it started a new IE process, which forced my users to
log in to the website again, which isn't an option.  The code I used
for that was:

Dim myProcess As New System.Diagnostics.Process
Dim StartInfo As System.Diagnostics.ProcessStartInfo
StartInfo = New System.Diagnostics.ProcessStartInfo("IExplore.exe",
strURL)
StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal
myProcess.Start(StartInfo)

If anyone has any ideas for me it would be appreciated.  Thanks.
ivan.pololi@interah.com - 12 Apr 2006 15:47 GMT
Do you use a full-trust form? (or a signed template).

I have problems with security trying to launch the same code from .NET
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.