Hello,
I’m currently developing a web application for online pizza ordering. More specifically the customers “orders” screen.
I need to be able to print off receipts at a press of a button.
I currently acheive this by having a button which opens a popup window, which contains the relevant info pulled from the database with this js function:
[CODE]function win(){
window.print();
window.opener.location.href=”<? echo $file ?>”;
setTimeout(‘window.close()’,2);
window.focus();
//–>
}
This refreshes the window in which i came from and closes the popup receipt window once its printed.
My problem is the print dialog box, I’ve done some reading and i’ve seen alot of people saying that it can’t be avoided. However unlike some of the other people requiring a solution to this that don’t complete control of the enviroment the application is being used, i do.
The current browser i’m using for this application is Opera because the receipt printer that the client uses (STAR SP200) doesn’t seem to like IE7 one little bit and prints out incorrectly.
So basically is there [B]ANY
Thanks for your time! ?