Hi All!!
Is there any way, I can avoid the Print Dialog from appearing multiple
times?
Let me be more clear.
I've say three files. file1.html, file2.html and file3.html.
there's a button Print in file1, on click of which, all the above
mentioned files are to be printed.
The method I'm using is, call the window.print(), the load the next
document, wcich does the same thing on load.
I'm using IE6 on Windows XP SP2. My clients will be using that.
Now, what's happening is that, on each call to window.print(), the
Print Dialog is displayed.
Is there any way to avoid it?
Otherwise, is there any way, I can get a handle to the Print Dialogs in
the subsequent print() commands so that, I can thru my JavaScript code,
"click the print button" and let the user think that the Dialog appears
only once?
Thanks in advance for your help. 1 2094
milti said the following on 10/20/2006 2:34 AM:
Hi All!!
Is there any way, I can avoid the Print Dialog from appearing multiple
times?
Let me be more clear.
I've say three files. file1.html, file2.html and file3.html.
Make all the files one file and print that one file.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steven |
last post by:
Hi all,
Is it possible to do an ie print from javascript that does not bring
up the print dialog? I'm in a situation where i need to load a
sequence of files into a browser and print all of them without any
user interaction.
Thanks!
~Steven
|
by: rom |
last post by:
I need to print a html table when the user clicks on a
key. the problem is that i don't want the printer dialog
box to appear. i guess this is impossible in javascript so
i think to create an event that will be fired by a keyup
event, this event will submit the page, and i will be able
to print in from the vb.net without the printing dialog
box. the problem is that on the server i can't print the
web table because i already submitted that...
|
by: fredd00 |
last post by:
Hi
I have an aspx page that has a datagrid and a print button
i have a javascript function :
function PrintPage(){
if (window.print) {alert('print');window.focus(); window.print(); }
else {alert('This script does not work in your browser');}
|
by: hamil |
last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview
control, the PageSetup control, and the Print dialog control. The code
attached is a concatination of two examples taken out of a Microsoft book,
"Visual Basic,Net Step by Step" in Chapter 18.
All but the bottom two subroutines will open a text file, and then allow me
to use the above controls, example 1. The bottom two subroutines will print
a graphic file, example...
|
by: stephen |
last post by:
I have created an order form that users javascript to create a new html
document when the customers clicks the "print page" button.
Once the new document has been created it then prints the document and
closes it with the following code:
<body onload="window.print(); window.close();">
This works correctly (or at least the way I expect it to work under MS
Internet Explorer, but it cuases Netscape to "crash"
| |
by: ccherlet |
last post by:
I'm trying to create a print link that sends the page to the printer
without opening the print dialog box on the browser.
I know that window.print() will open the print dialog and then the user
has to click OK.
is there anything that can do this?
Thanks in advance
|
by: Appu |
last post by:
How to Check in the window print dialog box whether we clicked either
"print" or "cancel".
while clicking a button i call wnidow.print() to pop up the windows
PRint Dialog box. I want to check whether the user clicked either
"print" or "cancel" in that print dialog box of windows.
Please Help soon.
Thanks
T.Appasamy
|
by: Vera |
last post by:
Hi there!
I'm a total newbie at web development, so I started bydownloading and
installing Visual Web Developer 2005 Express Edition as well as SQL Server
2005 Express Edition. I also downloaded several starterkits and studied the
MSDN articles on these starterkits. I learned quite a lot from them and got
things started nicely. There is one thing that I hoped to find, however, but
didn't. That is how to implement printing in my web...
|
by: EricJudge06 |
last post by:
We are converting some reports from Crystal Reports to Microsoft SQL Reporting Services (SSRS) in an ASP 2.0 VB.Net web app. Crystal had a function called PrintToPrinter which was being used to programmatically print to a network printer that we specified in the code as soon as the user clicked a button on the screen. The printer dialog box did not appear. It was true one-click printing.
I need to figure out how to do the same thing in...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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...
| |