How can you call for a print of the page from the controller ? |
[eluser]vincej[/eluser]
Hi - I have built an order processing system - I need to be able to give the customers a receipt of their order. any ideas how I could fire a print of the the web page straight from the controller, so that when the customer hit's 'submit' - it fires the printer ? even better would be if I could customised the print output so that it just prints the relevant information rather than the whole web page, thus creating a proper looking receipt. Many Thanks !!
[eluser]Aken[/eluser]
You can use Javascript to call the Print dialog, and CSS to hide anything irrelevant. http://www.w3schools.com/jsref/met_win_print.asp http://www.webcredible.co.uk/user-friend...heet.shtml http://www.webdesignerdepot.com/2010/01/...le-sheets/
[eluser]vincej[/eluser]
Thanks Aken - Good advice . This brings up the print dialogue .. is there anyway easy way that I can get it to go straight to the print spooler ?
[eluser]CroNiX[/eluser]
What if they are on a mobile device or something else with no printer? Normally I just send a PDF receipt via email and they can print it or store it however they wish. But no, you can't control the print queue, only present the dialog. I hope you are going to do more than just offer them to print the receipt right there on the spot.
[eluser]vincej[/eluser]
Thanks CroxNix - The business model of the customer is that customers collect their products from a designated location & time ie there is no shipping of product hence no pdf receipts needed. There can be a line up of 10 people .. so in order to speed up the process I had hoped that I could make a call to the print spooler which would fire off a receipt from their laptop like it were a POS device. Guess not ??
[eluser]Aken[/eluser]
There is no way to add to a print spool via the browser. You'd need a very custom solution of both software and hardware to achieve something like that. |
Welcome Guest, Not a member yet? Register Sign In |