473,395 Members | 1,343 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,395 software developers and data experts.

open a second IE window, set margins...

For my VS.NET 2005 webapplication I need it to open a second window and show
an image in it.
Then it needs to set the margins of that IE window and then print it
contents.
After the printing it can be closed.

How can I do this, if at all possible?

rg,
Eric

(btw: Happy New Year!!)
Dec 31 '05 #1
2 1663
Eric,

All these are client-side tasks that have to be handled in javascript.

There is a number of ways to open a window: window.open(),
window.showModalDialog(), window.showModelessDialog(). All these methods
take as a parameter an url of the web page you want to show. This page will
include an image control that will show the image. The page will be
formatted with a css rule "margin". You will print the page by calling
window.print() and you will close the window by calling window.close().

Eliyahu

"Eric" <so*****@MicroZoft.com> wrote in message
news:43***********************@text.nova.planet.nl ...
For my VS.NET 2005 webapplication I need it to open a second window and
show an image in it.
Then it needs to set the margins of that IE window and then print it
contents.
After the printing it can be closed.

How can I do this, if at all possible?

rg,
Eric

(btw: Happy New Year!!)

Jan 1 '06 #2
thank you..

I'll do the research on that...

rg,
Eric

"Eliyahu Goldin" <re*************@monarchmed.com> schreef in bericht
news:%2***************@TK2MSFTNGP09.phx.gbl...
Eric,

All these are client-side tasks that have to be handled in javascript.

There is a number of ways to open a window: window.open(),
window.showModalDialog(), window.showModelessDialog(). All these methods
take as a parameter an url of the web page you want to show. This page
will include an image control that will show the image. The page will be
formatted with a css rule "margin". You will print the page by calling
window.print() and you will close the window by calling window.close().

Eliyahu

"Eric" <so*****@MicroZoft.com> wrote in message
news:43***********************@text.nova.planet.nl ...
For my VS.NET 2005 webapplication I need it to open a second window and
show an image in it.
Then it needs to set the margins of that IE window and then print it
contents.
After the printing it can be closed.

How can I do this, if at all possible?

rg,
Eric

(btw: Happy New Year!!)


Jan 1 '06 #3

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

Similar topics

2
by: Ed Schimmel | last post by:
Hi All, I have a small question considiring the opening of a new window in javascript. As you all know the code below will open a new without any bars. But when I tried this code in IE6 it won't...
3
by: Bernd Liebermann | last post by:
Hi, I'm trying to change the content of an existing window from a second window using window.open(). This works fine in Netscape 7, but IE 6.0 returns an error, saying there's an invalid...
2
by: Richard Bell | last post by:
Newbie question ... please respond to group I'm trying to open/navigate to a url. How can I tell when the page is fully loaded? Testing suggest that window.open returns before the page is...
5
by: Nicola Pedrozzi | last post by:
Here I really need a guru... ;^( I found out today with a big disappointment that : window.open("url", ...) and also navigate("url") limit the max length of the url string to something...
40
by: Brian Jorgenson | last post by:
On my web page, I have a few hyperlinks with target frame of _blank. The hyperlink brings up a second window, but everytime I click on thie hperlink, it keeps bringing up a new window and not...
1
by: laxmi | last post by:
Is there a way to test whether a named window is open from a separate window which may not have opened the window? I have tried using: if(windowname == null) win = window.open(...) This...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
5
by: Richard Trahan | last post by:
I have an inscrutable problem with window.open. Consider the following code: var graphwin = window.open("","graphWin","height=400,width=400,resizable=yes"); It works perfectly in one place in...
4
by: RobertTheProgrammer | last post by:
Hi all, I'm a bit of a novice with javascript, so be patient with me... I'm using the "window.open" function to open a new window from my page. I actually have several buttons on my page that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
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,...
0
tracyyun
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...

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.