Mobile Thermal Printing Applications



Summary

Pendragon Forms provides the ability to create custom mobile solutions using the Zebra MZ 220 thermal printer.

Even in our current digital world, printing receipts, tags and barcodes via mobile applications is sometimes a necessity. Using Pendragon Forms, you can print to the Zebra MZ 220 mobile printer. Printing commands include the ability to print records based on subform records such as order or receiving line items.

Features

Importing of forms for Print Pages and Print Records

Custom print styles for record printing

Requirements

Pendragon Forms 8

Zebra MZ 220 mobile thermal printer

Android device with Bluetooth (Android 5.1 or higher required)

Pendragon Forms app installed on the Android device

Base Tutorial Time: 10 minutes

Tutorial

Parent and Subform

Look below in the Downloads section to download the example forms, print_zebra.pff and print_line_items.pff, described here.

The parent form, Print Zebra Test, contains the following fields:

Field 1: Button
Field 2: Datetime “PDate”
Field 3: Text “salesperson”
Field 4: Text “order”


The record form, Print Line Items, contains the following fields:

Field 1: Textfield “order”
Field 2: Textfield “product”
Field 3: Numeric “quantity”

Script capture of device with scan

The scripting used on the button in field 1 of Print Zebra Test (see the Parent and Subform tab) is as follows:

  initialize:
    $[PDate] = now

  click:
    SETPARAM font 0
    SETPARAM size 3
    PRINTLEFT 1 "--------------------"
    PRINTLEFT 1 "Order Report"
    PRINTLEFT 1 "--------------------"

    select all "Print Line Items"
    select "Print Line Items" where field 1 is $[order]
    if result > 0 then
      RESULT = "Product: [2][newLine] Qty: [3][newLine]"
      PRINTLEFT 0 "[ROWS]"
    endif

    PRINTLEFT 1 " "
    PRINTLEFT 1 "------------------"

    format $[PDate] datetime
    PRINTLEFT 1 result
    PRINTLEFT 1 "Salesperson: "
    PRINTLEFT 8 $[salesperson]
    PRINTLEFT 1 " "
    PRINTLEFT 1 "Order: "
    PRINTLEFT 8 $[order]
    PRINTLEFT 1 " "
    PRINTLEFT 1 "Signature"
    PRINTLEFT 1 " "
    PRINTLEFT 1 "X"
    PRINTLEFT 1 "* * * * * * * * * *"

    PRINTNEWPAGE


Example printing receipt

By using the example forms, the pages and printouts should look as follows:




Get Started With Your Free 14 day Trial!

Start Free Trial