Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 561
  • Last Modified:

Printing Labels from a Web Browser

I have a simple web application that pulls data from a MySQL database and displays them on a webpage. The fields for example are First Name, Last Name, User Code and Department. A list of records will display on the webpage that needs to be printed. I have a 2.5in x 1.5in thermal label printer that I would like to print these on. Each record will be on their own label. Can someone point me to the right direction on how I can accomplish this?


1 Solution
Loganathan NatarajanLAMP DeveloperCommented:
You have options to design the print label as HTML + CSS design OR as PDF design.

If it is HTML + CSS means, you have to write the script to loop through and print them as per the design

If it is PDF.. just generate it and print it all.
sfloryAuthor Commented:
The printer we are using (Zebra ZM400) allows us to send XML files. We have decided to create a program to create XML files based on the information pulled from the search criteria and send these to the print server on the printer. Using Zebra's software a ZPL file can be created that holds the specifications of the label which can be stored on the print server. Invoking a FTP command or a telnet command to send the file to the printer will allow what we wanted to do. Thanks.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now