473,394 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Open new Internet Explorer window from web service or Web App

i need to open a new internet explorer windows from a Web app i have tried
with this code but it seems not to work, because nothin happens when i call
the application.

using SHDocVw;
using System.Runtime.InteropServices;
SHDocVw.InternetExplorer explorer = new SHDocVw.InternetExplorer();

SHDocVw.IWebBrowserApp wb = (SHDocVw.IWebBrowserApp) explorer;
wb.Visible = true;

object noValue = System.Reflection.Missing.Value;
wb.Navigate("about:blank", ref noValue, ref noValue, ref noValue, ref
noValue);

any suggestions or code sample would be appreciate.

thanks in advance

PD: i allready trie changing this line
SHDocVw.InternetExplorer explorer = new SHDocVw.InternetExplorer();
for
SHDocVw.InternetExplorer explorer = new SHDocVw.InternetExplorerClass();
bur it doesn't seem to work either.
Nov 19 '05 #1
3 2908
response.write("<script
language=""javascript>window.open("http://your.url");</script>")

"kstriyhon" <ks*******@discussions.microsoft.com> wrote in message
news:BA**********************************@microsof t.com...
i need to open a new internet explorer windows from a Web app i have tried
with this code but it seems not to work, because nothin happens when i call the application.

using SHDocVw;
using System.Runtime.InteropServices;
SHDocVw.InternetExplorer explorer = new SHDocVw.InternetExplorer();

SHDocVw.IWebBrowserApp wb = (SHDocVw.IWebBrowserApp) explorer;
wb.Visible = true;

object noValue = System.Reflection.Missing.Value;
wb.Navigate("about:blank", ref noValue, ref noValue, ref noValue, ref
noValue);

any suggestions or code sample would be appreciate.

thanks in advance

PD: i allready trie changing this line
SHDocVw.InternetExplorer explorer = new SHDocVw.InternetExplorer();
for
SHDocVw.InternetExplorer explorer = new SHDocVw.InternetExplorerClass();
bur it doesn't seem to work either.

Nov 19 '05 #2
kstriyhon wrote:
i need to open a new internet explorer windows from a Web app i have tried
with this code but it seems not to work, because nothin happens when i call
the application.

using SHDocVw;
using System.Runtime.InteropServices;
SHDocVw.InternetExplorer explorer = new SHDocVw.InternetExplorer();

SHDocVw.IWebBrowserApp wb = (SHDocVw.IWebBrowserApp) explorer;
wb.Visible = true;

object noValue = System.Reflection.Missing.Value;
wb.Navigate("about:blank", ref noValue, ref noValue, ref noValue, ref
noValue);

any suggestions or code sample would be appreciate.

thanks in advance

PD: i allready trie changing this line
SHDocVw.InternetExplorer explorer = new SHDocVw.InternetExplorer();
for
SHDocVw.InternetExplorer explorer = new SHDocVw.InternetExplorerClass();
bur it doesn't seem to work either.


You'll have to pass it to clientside code to open a new window, server
code cant, or will only open an instance of the browser on the server...
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Nov 19 '05 #3
A web app is a client-server app. The browser is on the client. The server
is somewhere else. Since you want to open a browser on the client, you need
to use JavaScript to do it. Hint: Use the JavaScropt window.open() method.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Everybody picks their nose,
But some people are better at hiding it.

"kstriyhon" <ks*******@discussions.microsoft.com> wrote in message
news:BA**********************************@microsof t.com...
i need to open a new internet explorer windows from a Web app i have tried
with this code but it seems not to work, because nothin happens when i
call
the application.

using SHDocVw;
using System.Runtime.InteropServices;
SHDocVw.InternetExplorer explorer = new SHDocVw.InternetExplorer();

SHDocVw.IWebBrowserApp wb = (SHDocVw.IWebBrowserApp) explorer;
wb.Visible = true;

object noValue = System.Reflection.Missing.Value;
wb.Navigate("about:blank", ref noValue, ref noValue, ref noValue, ref
noValue);

any suggestions or code sample would be appreciate.

thanks in advance

PD: i allready trie changing this line
SHDocVw.InternetExplorer explorer = new SHDocVw.InternetExplorer();
for
SHDocVw.InternetExplorer explorer = new SHDocVw.InternetExplorerClass();
bur it doesn't seem to work either.

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
1
by: F | last post by:
I'm trying to open a window in a specific position of the screen with this script: window.open('window.htm','mywindow','width=250,height=350,screenX=20,screenY =100') it works with Netscape...
3
by: Becky Carter Hickman-Jones | last post by:
Hi, I have a simple script that opens an image in a new window which is sized to the image. The script is as follows: <a title="xxx"...
4
by: Ian Sedwell | last post by:
Hi guys The following code works just fine in Netscape on MacOS and Windows. But in Explorer on MacOS and Windows it throws a type mismatch error at the point marked with the comment ³// bug out...
10
by: aagee | last post by:
Hi all Can someone clue me in on this? I just noticed that following doesn't work as it used to: window.open(... "fullscreen=yes" ...) Used to get a window that occupied the whole screen;...
1
by: Woody | last post by:
I opened a JPEG image in a separate window using window.open("mypic.jpg"). When the new window opened, I immediately saw the QuickTime media player load on the window. The QuickTime player then...
6
by: VK | last post by:
I'm using window.open method in my script to open poup window. Recently Internet Explorer users reported that the script crashes on their machine with different runtime errors. See the bug:...
6
by: mardif | last post by:
Hi guys. I've a very big big big problem: I've in my windows computer a file named cicciobello.html, located in c:\documents and settings\username\desktop\cicciobello.html. Now, I MUST open...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.