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.Interne tExplorer explorer = new SHDocVw.Interne tExplorer();
SHDocVw.IWebBro wserApp wb = (SHDocVw.IWebBr owserApp) explorer;
wb.Visible = true;
object noValue = System.Reflecti on.Missing.Valu e;
wb.Navigate("ab out: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.Interne tExplorer explorer = new SHDocVw.Interne tExplorer();
for
SHDocVw.Interne tExplorer explorer = new SHDocVw.Interne tExplorerClass( );
bur it doesn't seem to work either. 3 2960
response.write( "<script
language=""java script>window.o pen("http://your.url");</script>")
"kstriyhon" <ks*******@disc ussions.microso ft.com> wrote in message
news:BA******** *************** ***********@mic rosoft.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.Interne tExplorer explorer = new SHDocVw.Interne tExplorer();
SHDocVw.IWebBro wserApp wb = (SHDocVw.IWebBr owserApp) explorer; wb.Visible = true;
object noValue = System.Reflecti on.Missing.Valu e; wb.Navigate("ab out: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.Interne tExplorer explorer = new SHDocVw.Interne tExplorer(); for SHDocVw.Interne tExplorer explorer = new SHDocVw.Interne tExplorerClass( ); bur it doesn't seem to work either.
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.Interne tExplorer explorer = new SHDocVw.Interne tExplorer();
SHDocVw.IWebBro wserApp wb = (SHDocVw.IWebBr owserApp) explorer; wb.Visible = true;
object noValue = System.Reflecti on.Missing.Valu e; wb.Navigate("ab out: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.Interne tExplorer explorer = new SHDocVw.Interne tExplorer(); for SHDocVw.Interne tExplorer explorer = new SHDocVw.Interne tExplorerClass( ); 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
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*******@disc ussions.microso ft.com> wrote in message
news:BA******** *************** ***********@mic rosoft.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.Interne tExplorer explorer = new SHDocVw.Interne tExplorer();
SHDocVw.IWebBro wserApp wb = (SHDocVw.IWebBr owserApp) explorer; wb.Visible = true;
object noValue = System.Reflecti on.Missing.Valu e; wb.Navigate("ab out: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.Interne tExplorer explorer = new SHDocVw.Interne tExplorer(); for SHDocVw.Interne tExplorer explorer = new SHDocVw.Interne tExplorerClass( ); bur it doesn't seem to work either. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 (same folder).
The cookie is not received. Can someone explain why?
I worked around this by adding a cache-control header with a value of
no-cache. This fixes the problem. Unfortunately that causes another
problem with Internet Explorer...
|
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
where I can set the window height, statusbar=no, etc?
Thanks,
-Luke
|
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 6.2 but Internet Explorer and Opera just seem to
ignore the XY coordinates.
Any idea on how to make it work?
|
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"
onclick="window.open('http://www..com/photos/xxx.jpg','height=xxx,
width=xxx');return false" href="#">link text</a>
This script works very well for my needs, however, in IE6, the resulting
opened window has unnecessary padding on the top and left sides of the
image, which pushes the image down and to the...
|
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 at this point². (The functions that are
called, but not listed here work fine in both Netscape and Explorer in this
and other contexts, so I can confidently discount them as the source of any
error.)
I have also tried just a plain and simple...
| |
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; now I get the
title bar and status bar too. Any ideas?
|
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
loads my image.
Is this supposed to happen?? IE does NOT need the
QuickTime player to display images. Why is IE using
QuickTime to display an image in a window??
|
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:
<http://support.microsoft.com/default.aspx?scid=kb;en-us;888021>
The statement like
myPopup = window.open(args);
gives you runtime error and halts the script execution *if a 3rd party
|
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 this file with os.spawn(os.P_WAIT ...., because I must
wait the user cancel the explorer window, ok?
And so, I write:
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |