Web page print button with set options
Moderator: General Moderators
Web page print button with set options
I'm not sure if this can be done or how. But I have a online system that takes information via forms and updates mysql database with various information using php. At the end I populate a web page with information from the database using php and what I want to do is have a print button that a user can press to print out the web page for the user but I want it so some printing options are set for the user like margins and have certain pages printed 2sided without user having to manually enter info so pages come out in right format. Does anyone know how this can be achieved? I haven't found anything in php that will work, so any advise would be appreciated.
Re: Web page print button with set options
You cannot set this at a server, you need to set is at client side, which means a client side application (ActiveX for IE; or maybe Java?)
Re: Web page print button with set options
Yeah, I wanted something client side. After some searching around I came across scriptx. The free basic verisin allows for margin, header, footer and page orientation options to be set. This is enough, although full version gives much greater control. Not that hard to implement after too. Just that it's ie only, which isn't a problem for me. But cheers 
Re: Web page print button with set options
I think your answer actually just lies in CSS for the printer.