Jump to content

Recommended Posts

Hello everybody.  What I am trying to do is add a button on a web page that clicking on it will send 3 lines of text (an address) directly to an assigned printer that prints labels.  I recall from old days of using VB this was an easy task with that language.  However I can not find any information about PHP or JS to do the same thing.  Any ideas or examples would be highly appreciated.

 

Link to comment
https://forums.phpfreaks.com/topic/325582-printing-shipping-labels-directly/
Share on other sites

Where is the printer? Is it connected to the client or to the server?

If it's connected to the client then the only thing you can do is present a print dialog. The user will have to choose the printer (potentially) and hit the button to print.

If it's connected to the server then you can use a library to have PHP print the page. The details of that depend on what you're printing...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.