Page 1 of 1

Can you point a Print to a Printer, using PHP?

Posted: Mon Mar 12, 2012 10:33 am
by simonmlewis
I have someone who wants to be able to click a button to print directly to a Dymo printer.

I don't think it's possible, but if you know what printer you've got, is it possible to force it to select it ??

Simon

Re: Can you point a Print to a Printer, using PHP?

Posted: Mon Mar 12, 2012 1:15 pm
by califdon
No, not from PHP.

Re: Can you point a Print to a Printer, using PHP?

Posted: Wed Mar 14, 2012 9:41 am
by JoeCommodore
Two ideas:

A) You would have to have something other than a web browser clientside that can communicate to the php server and printer, like a python script or VB, whatever. PHP lives only on the server, the printer is on the client, and web browsers usually don't auto-initate printing.

B) Alternatively you can use a PDF library like FPDF to create a PDF of the label with which the client can then print - this is dependent on the cooperation of the web browser/printer driver to properly send the PDF to the printer (read: it should work, but you wont know till you try it out).

Re: Can you point a Print to a Printer, using PHP?

Posted: Mon Mar 19, 2012 5:08 am
by johnshilton
Alternative to php stuff, you can also use the classicPDF editor for this PDF work, it will make the task much easier. Do give your feedback here.
Here is the resource link: