Click to See Complete Forum and Search --> : printing a page
richy
May 18th, 2001, 05:54 AM
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.
sail3005
May 18th, 2001, 06:11 AM
http://www.vbforums.com/showthread.php?s=&threadid=74469
JoshT
May 18th, 2001, 07:44 AM
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?
richy
May 18th, 2001, 07:48 AM
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?
fsystem
May 18th, 2001, 08:52 AM
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?
richy
May 18th, 2001, 08:57 AM
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.
sail3005
May 18th, 2001, 04:15 PM
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.
kayoca
Jul 3rd, 2001, 02:40 AM
And how about setting the default setting of your printer dialog?
Like set your landscape to default?
Mark Sreeves
Jul 10th, 2001, 05:50 AM
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!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.