Page 1 of 2
printing a page
Posted: Mon Feb 20, 2006 3:30 am
by duk
hy guys,
there is something that i could do, to print a page, but automaticly no one needs to clik ok just starts printing..
thanks
Posted: Mon Feb 20, 2006 3:49 am
by onion2k
No. You can open the print dialogue by putting document.print(); in the body onLoad attribute, but the user will still need to click.
Posted: Mon Feb 20, 2006 8:25 am
by duk
yeah im using that...
i realy need something to print automaticly, if someone knows something that could do this please tell me
thanks
Posted: Mon Feb 20, 2006 8:54 am
by Maugrim_The_Reaper
I have to ask why you would want to circumvent a user's control over their own PC to start automatically printing anything? It's sort of a discouraged practice for law abiding folk...
Posted: Mon Feb 20, 2006 10:09 am
by feyd
The only automatic printing you could do, legally, is having the server print. But that's probably not what you want.
Posted: Mon Feb 20, 2006 3:08 pm
by duk
Maugrim_The_Reaper wrote:I have to ask why you would want to circumvent a user's control over their own PC to start automatically printing anything? It's sort of a discouraged practice for law abiding folk...
my boss wants like that...
basicly its a registration form, when cames to the end should print two pages but he ask if i can take the user prompt to print and just start printing...
Posted: Tue Feb 21, 2006 2:51 am
by phpScott
If you boss isn't that computer savey tell him/her that it has to do with computer security and the way the internet works. You are not allowed that type of control over a persons computer.
If they have seen a site that does it though, asking them where it is and have a look at their code.
I quite often print a registration page to file and would hate to have the printer spit it out at me if I wanted to save the page to file instead.
Posted: Tue Feb 21, 2006 4:44 am
by duk
phpScott wrote:If you boss isn't that computer savey tell him/her that it has to do with computer security and the way the internet works. You are not allowed that type of control over a persons computer.
If they have seen a site that does it though, asking them where it is and have a look at their code.
I quite often print a registration page to file and would hate to have the printer spit it out at me if I wanted to save the page to file instead.
lol, in fact things doesn't work that way in the business world, if the boss wnats something we nee dto look forward to find something that could do that... if not someone could find it for you, what i was tring to get here and i get it from
feyd, maybe a print server could help me, and i just reply about my boss becouse someone was wondering why the hell this guy(me) wants to conrole a persons compeuter...
Posted: Tue Feb 21, 2006 4:57 am
by onion2k
Update.. this
is possible. Albeit with a bit of a cheat.
Go here:
http://www.ooer.com/bltl/list/printtest
Click "Print (PDF)" at the bottom, then click "Print as PDF" in the flyout .. hey presto .. one printed form.
Posted: Tue Feb 21, 2006 5:03 am
by JayBird
onion2k wrote:Update.. this
is possible. Albeit with a bit of a cheat.
Go here:
http://www.ooer.com/bltl/list/printtest
Click "Print (PDF)" at the bottom, then click "Print as PDF" in the flyout .. hey presto .. one printed form.
Interesting, nice find

Posted: Tue Feb 21, 2006 5:17 am
by duk
realy interesting
but i didn't find any how to???
Posted: Tue Feb 21, 2006 5:31 am
by onion2k
Everything you need to do it is on this page:
http://www.fpdf.org/en/script/script36.php
Posted: Tue Feb 21, 2006 5:42 am
by phpScott
nice find as well.
duk
part of your job would hopefully be partly to provide education on what is possible, what the standards are, and what might be acceptable.
If this is for internal use then you can do what the boss wants, if it is for public use, i would be hesitant to implement such a feature.
Posted: Tue Feb 21, 2006 7:49 am
by duk
phpScott wrote:nice find as well.
duk
part of your job would hopefully be partly to provide education on what is possible, what the standards are, and what might be acceptable.
If this is for internal use then you can do what the boss wants, if it is for public use, i would be hesitant to implement such a feature.
you right... and i know that... a part of education i do my best to explain, but sometimes there is some boos's that they just want to hear yes or no... and just a brief explanation if they want to hear...
off course i would never use this in a online service... someone that try to apply this online will not respect a visitor and not respecting in fact the all ethic arroud world wide web where the user interaction is all about

Posted: Tue Feb 21, 2006 8:09 am
by phpScott
all is good with the world then.