hana.nadeem Posted February 27, 2009 Share Posted February 27, 2009 hi i am here again with new problem :( i want to implement when ever my admin clicks on packing slip it itself prints a slip for him. i.e. a slip itself starts printing, he himself don't need to click print button........... its required to minimize the number of clicks thanx Link to comment Share on other sites More sharing options...
hana.nadeem Posted February 27, 2009 Author Share Posted February 27, 2009 hi i am here again with new problem :( i want to implement when ever my admin clicks on packing slip it itself prints a slip for him. i.e. a slip itself starts printing, he himself don't need to click print button........... its required to minimize the number of clicks thanx please help me for it any kind of suggestions any functions of php for printing Link to comment Share on other sites More sharing options...
hana.nadeem Posted March 4, 2009 Author Share Posted March 4, 2009 please i need solution of my problem urgently i am unable to fine it even from net :( please can anybody search net for me i need the solution badly but unable to find it :blink: please please please ................................................ Link to comment Share on other sites More sharing options...
117 Posted March 4, 2009 Share Posted March 4, 2009 As far as i can remember, you can't force a browser to print something. You will need to have user input somewhere. Link to comment Share on other sites More sharing options...
knifeman Posted March 4, 2009 Share Posted March 4, 2009 You can create a button on the page that runs on java to print the current page: http://www.boutell.com/newfaq/creating/printbutton.html But I do not know how to make the button call up the packing slip to print it. The code referenced above only prints the current page. Tim please i need solution of my problem urgently i am unable to fine it even from net :( please can anybody search net for me i need the solution badly but unable to find it :blink: please please please ................................................ Link to comment Share on other sites More sharing options...
knifeman Posted March 4, 2009 Share Posted March 4, 2009 Here is a page that tells how to force a print when the page loads http://www.htmlgoodies.com/beyond/javascript/article.php/3471121 Presumably you would add code to packingslip.php and when you click the button in admin, the packing slip page loads and a print dialog window pops up automatically. Tim Link to comment Share on other sites More sharing options...
hana.nadeem Posted March 8, 2009 Author Share Posted March 8, 2009 Here is a page that tells how to force a print when the page loads http://www.htmlgoodies.com/beyond/javascript/article.php/3471121 Presumably you would add code to packingslip.php and when you click the button in admin, the packing slip page loads and a print dialog window pops up automatically. Tim i tried this one but i am facing two problems with it 1. its printing the URL as well 2. its that it does not immediately fire a print. It actually only fires the print window which i dont want :( Link to comment Share on other sites More sharing options...
hana.nadeem Posted March 8, 2009 Author Share Posted March 8, 2009 one more question/suggestion required if i cannot force webpage to print can i set any settings for that e.g i restrict it not to page print url,page no, page title Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.