By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,492 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

Printing over the Internet

P: 61
I have a requirement of printing over the Internet using a web application
It's a shopping cart. Once the order is confirmed it should be printed out in
the company's warehouse.
I use PHP for server side scripting and MS SQL for database.
I think the web server must be Windows server.

Is this possible. If so anyone can help me in this.

Your efforts are greatly appreciated.

Thank you very much
Feb 20 '08 #1
Share this Question
Share on Google+
3 Replies


hsriat
Expert 100+
P: 1,654
I have a requirement of printing over the Internet using a web application
It's a shopping cart. Once the order is confirmed it should be printed out in
the company's warehouse.
I use PHP for server side scripting and MS SQL for database.
I think the web server must be Windows server.

Is this possible. If so anyone can help me in this.

Your efforts are greatly appreciated.

Thank you very much
ok, so when a customer gets confirmation for an order, the order is printed on the warehouse's printer, not the customer's...? is it?

I don't know if its possible to print it instantaneously, but its possible to print orders as soon as the warehouse's browser opens the received-orders-website.
On the ONLOAD event of the body call the javascript's print function and print all the orders which are received after the last printing was done.
And after the printing is done, turn off some PRINT_PENDING flag to ensure it doesn't get printed next time. AJAX may be required in this.
Feb 20 '08 #2

P: 61
ok, so when a customer gets confirmation for an order, the order is printed on the warehouse's printer, not the customer's...? is it?

I don't know if its possible to print it instantaneously, but its possible to print orders as soon as the warehouse's browser opens the received-orders-website.
On the ONLOAD event of the body call the javascript's print function and print all the orders which are received after the last printing was done.
And after the printing is done, turn off some PRINT_PENDING flag to ensure it doesn't get printed next time. AJAX may be required in this.

Hi hsriat,

Thank you very much for your reply.
Yes, Indeed what you had understood is exactly Correct.
Yeah! am able to think of what solution you had offered.
But my client persists to do it when the order is confirmed.
I heard that Windows has an Internet Printing Protocol which can be
used to Print Over the Internet using the IP address of the Printer.
I think there should be a print server running for this.
But am not able to understand futher regarding this.

If any one knows whether it can possible their help would be greatly appreciated.

Once again Thanks Hsriat
Feb 22 '08 #3

hsriat
Expert 100+
P: 1,654
Hi hsriat,

Thank you very much for your reply.
Yes, Indeed what you had understood is exactly Correct.
Yeah! am able to think of what solution you had offered.
But my client persists to do it when the order is confirmed.
I heard that Windows has an Internet Printing Protocol which can be
used to Print Over the Internet using the IP address of the Printer.
I think there should be a print server running for this.
But am not able to understand futher regarding this.

If any one knows whether it can possible their help would be greatly appreciated.

Once again Thanks Hsriat
If there is something like printing protocol you talking about, that may hepl you. But I don't know about that.

If there is no way left, then use AJAX (in the same page I talked about above), and keep on sending request to the server (say) every 1 minute using JavaScript. Any updation will get printed then.

One more Idea: (Sorry if you'll find it stupid) If you want a more professional way, so that even the customer is happy, make an application (not web page) which can get the details of the updated confirmation after given time interval over the http and print it automatically. Configure that application on the startup of the OS so that there's no need to start application manually.
Feb 22 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.