|
-
May 18th, 2001, 05:54 AM
#1
Thread Starter
Hyperactive Member
printing a page
Although I've seen it says that you can't automatically print a webpage using JavaScript (http://javascript.internet.com/messages/print-page.html) is there actually no way of doing this? It would be very helpful in my application.
ASP, PHP, VB, JavaScript, CSS, HTML, a little C and a little CGI.
Richard Whitehouse.
Join the Footie Predictions League
"Make it idiot proof and someone will make a better idiot."
-
May 18th, 2001, 06:11 AM
#2
PowerPoster
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
May 18th, 2001, 07:44 AM
#3
Black Cat
You can't automatically print a web page.
You know those little pop-up ads that are so annoying? How would you like if they started coming out your printer?
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
May 18th, 2001, 07:48 AM
#4
Thread Starter
Hyperactive Member
thats very true, but i do need something like that for my web application. is there anyway that the javascript can tell as to whether the user has clicked ok on the print dialogue box when it appears using javascript?
ASP, PHP, VB, JavaScript, CSS, HTML, a little C and a little CGI.
Richard Whitehouse.
Join the Footie Predictions League
"Make it idiot proof and someone will make a better idiot."
-
May 18th, 2001, 08:52 AM
#5
Junior Member
You can't get around the dialog box as you may have seen with my example. Why do you want to know whether the user clicked ok or not?
-
May 18th, 2001, 08:57 AM
#6
Thread Starter
Hyperactive Member
then the user won't need to click on any more buttons than need be. Once the user has clicked ok, then its ok for the next record to be shown.
ASP, PHP, VB, JavaScript, CSS, HTML, a little C and a little CGI.
Richard Whitehouse.
Join the Footie Predictions League
"Make it idiot proof and someone will make a better idiot."
-
May 18th, 2001, 04:15 PM
#7
PowerPoster
I doubt it. Printing webpages is a major security issue, and the browser is not going to give you very much control or options that have to do with it.
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Jul 3rd, 2001, 02:40 AM
#8
And how about...
And how about setting the default setting of your printer dialog?
Like set your landscape to default?
-
Jul 10th, 2001, 05:50 AM
#9
Frenzied Member
If you can restrict/recommend your users to use IE 4.01 or higher, you can use the ScriptX component from http://www.meadroid.com/scriptx to control printing.
This component enables you to set the orientation, footer/header text and margins in code without changing the browser's original settings.
....and it's free!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|