Printing Labels from a Web Browser

Posted on 2009-02-23
Last Modified: 2012-05-06
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?


Question by:sflory
    LVL 36

    Expert Comment

    by:Loganathan Natarajan
    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.

    Accepted Solution

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    A Change in PHP Behavior with Session Write Short Circuit ( (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    The viewer will learn how to count occurrences of each item in an array.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now