Page 1 of 1
Is it possible to print directly to printer?
Posted: Mon Mar 08, 2010 8:13 am
by vinoth
Hi all,
I am working ecommerce website with zencart.
In that project, I want to print the order at the final checkout page.
The order should print on the printer attached on the client's system.
Is it possible to print remote printer without customers notification ?
Please provide me some solutions, code or reference.
Thanks in advance
Vinoth
Re: Is it possible to print directly to printer?
Posted: Mon Mar 08, 2010 8:21 am
by Darhazer
No, you cant't use client's hardware without clien't permission.
You can use window.print() JS function to popup the print dialog
Or you can write a browser plugin that performs the print (a collegue of mine wrote such ActiveX, but since it was an internal system it was not a problem to limit to IE only), but still the client should install it.
And why would you want to print on the client's printer, what if the client have no printer at all? Better just ask him to print the page - you'll give the client a chance to save the page and to go to another computer with printer attached to print it.
Re: Is it possible to print directly to printer?
Posted: Mon Mar 08, 2010 8:32 am
by vinoth
Don't think about clients printer. we need to print on some printer its located on somewhere.
Its an ecommerce site for an hotel, customer will order from his home. once the order got confirmed we need to print the order on the deticated printer. The printed copy is consider as the bill or somewhere.
Hope you will get my requirements.
Is there any other alternative solution for that
Re: Is it possible to print directly to printer?
Posted: Mon Mar 08, 2010 8:40 am
by Darhazer
The order should print on the printer attached on the client's system.
But if you want to print the order on a printer, attached to the server, that's possible
Take a look at
CUPS
Re: Is it possible to print directly to printer?
Posted: Mon Mar 08, 2010 8:44 am
by vinoth
Hi Darhazer,
Thanks for your reference,
I am not getting clearly.
"attached to the server" means where we need to connect the printer?
I will try the CUPS and get back soon.
Thanks again
Re: Is it possible to print directly to printer?
Posted: Tue Mar 09, 2010 12:01 am
by vinoth
Hi all
I checked the CUPS documentation, I don't know where to install CUPS ...
Is any other option is there to print..
Thanks in advance.
Re: Is it possible to print directly to printer?
Posted: Tue Mar 09, 2010 5:57 am
by VladSun
Where are the printer and the web server located - can you connect the printer directly to the server?
Is it Linux or Windows OS server?
Re: Is it possible to print directly to printer?
Posted: Wed Mar 31, 2010 1:29 am
by vinoth
hi Viadsun
We are using Linux server,
Please provide any guidelines.
Re: Is it possible to print directly to printer?
Posted: Wed Mar 31, 2010 11:36 am
by Weiry
vinoth wrote:hi Viadsun
We are using Linux server,
Please provide any guidelines.
I think you missed the first line of his post.
He cant give you much help unless you help him out first
What he means is, can you physically get a cable from the printer, and plug it directly into the computer you are using as a server.
Code: Select all
_______ ______
|Printer|------>|Server|
¯¯¯¯¯¯¯ ¯¯¯¯¯¯
Or is it on a network?
_______ ______
|Printer|--->{Switch}-->|Server|
¯¯¯¯¯¯¯ ¯¯¯¯¯¯