Skip to main content
Version: Next

LMES Label Printing Guide

1. Printing Software Installation and Configuration​

1.1 BarTender Software Installation​

I. BarTender Label Software Installation​

  1. Install BarTender software.

Download Link: Bartender打印机配置相关.zip

II. BarTender Label Editing Software Installation and Usage​

  1. Open BarTender, create a new template or open an existing template.

![](./LMES Label Printing Guide.assets/wps4-20251111090605-d850rqt.jpg)

  1. Click Print and select a printer. If there is no physical printer, you can select PDF file printing and set the file printing path to view the printing result.

![](./LMES Label Printing Guide.assets/wps5-20251111090605-vgx0vr0.jpg) ![](./LMES Label Printing Guide.assets/wps6-20251111090605-at4n6xm.jpg)

  1. Create a new path and put the template file into the specified folder.

![](./LMES Label Printing Guide.assets/wps7-20251111090605-c0509bx.jpg)

1.2 Zebra Software Installation (Currently only supports TCP/IP)​

I. Zebra Label Software Installation​

  1. Driver Download: https://www.zebra.com/cn/zh/support-downloads/printers.html

Driver Software Path: zd86526125-certified.exe (Please refer to the printer model for specific driver address)

![](./LMES Label Printing Guide.assets/wps8-20251111090605-ct3bgcb.jpg)

Note: Prerequisite is that the printer IP and other configurations are set up in advance, and the printer can connect to the network.

  1. Install Printing Template Design Software

Download Link: Zebra打印机配置相关.zip

II. Zebra Label Editing Software Installation and Usage​

  1. Method to generate PRN file (Case: 889A Label.nlbl)

![](./LMES Label Printing Guide.assets/wps9-20251111090605-wj6xa8t.jpg)

Step 1:

![](./LMES Label Printing Guide.assets/wps10-20251111090605-tjlkauy.jpg)

  1. Check "Print to file" on the print page to generate a .prn file.

![](./LMES Label Printing Guide.assets/wps11-20251111090605-nnzzc68.jpg)

  1. Copy the content in the red box. ZPL commands start with XA and end with XZ.

  2. Replace fixed values in the command with system variables, e.g., {Barcode}.

III. Control Panel Printer Properties​

![](./LMES Label Printing Guide.assets/wps12-20251111090605-n5h3wj5.jpg)

Control Panel → Devices and Printers → Find the corresponding printer → Right-click and select "Printer Properties" (Do not select "Properties") → Enter Port Configuration → Select "Print to File".

Returning to the template tool and clicking print will generate a .prn file, which contains ZPL commands that can be copied to a .txt document.

1.3 FastReport Label Editing Software Installation and Usage​

I. FastReport Software Installation​

FastReport.Net is a reporting solution for Windows Forms, ASP.NET, and MVC. It can be used in Microsoft Visual Studio 2005–2019 and supports .NET Framework 2.0–4.x and .NET Core.

Official Documentation: https://www.fast-report.com/public_download/docs/FRNet/online/en/ProgrammerManual/en-US/UsingReportInVS.html

Chinese Reference: https://www.fastreportcn.com/news/3.html

Download Link: FastReport打印机配置相关.zip

Taking FastReport.Net V2014.4.8 For .Net4.0 as an example, open the compressed package as shown below:

![](./LMES Label Printing Guide.assets/wps13-20251111090605-8v5u5k3.jpg)

Main File Description:

  • Demos: Official examples, including C#, VB.Net, WCF, Report, etc.
  • Extras: Data source connection related
  • Demo.exe: Official report example application
  • Designer.exe: Report template design application
  • Viewer.exe: Report viewing application
  • *.dll: Program dependent dlls

II. General Usage Steps​

  1. Open Designer.exe to design the report style.
  2. Bind data source fields.
  3. Write code to query the data source and call the print method.
  4. Docking Example: .frx file example:
<Report ScriptLanguage="CSharp" ReportInfo.Created="02/17/2023 16:55:19" ReportInfo.Modified="11/05/2025 17:39:25" ReportInfo.CreatorVersion="2014.4.8.0">
<Dictionary>
<TableDataSource Name="LabelPrintProperties" ReferenceName="LabelPrintProperties" DataType="null" Enabled="true">
<Column Name="Barcode" DataType="System.String"/>
<Column Name="QRCodeImage" DataType="System.String"/>
</TableDataSource>
</Dictionary>
<ReportPage Name="Page1" PaperWidth="8" PaperHeight="10" LeftMargin="0" TopMargin="0" RightMargin="0" BottomMargin="0" FirstPageSource="1" OtherPagesSource="1">
<DataBand Name="Data1" Top="20" Width="30.24" Height="122.85">
<TextObject Name="Text1" Top="1.89" Width="30.24" Height="3.78" Text="[LabelPrintProperties.Barcode]" Font="Arial, 3pt"/>
<PictureObject Name="Picture1" Left="9.45" Top="9.45" Width="30" Height="30" DataColumn="LabelPrintProperties.QRCodeImage"/>
</DataBand>
</ReportPage>
</Report>

Notes:

  • TableDataSource behavior has a fixed format, and dictionary items can be added in Column.
  • The Community Edition has limited QR code support. Please use the fixed field QRCodeImage for printing QR codes.

2. LMES Plugin Installation​

2.1 Install LMES Plugin Supporting Label Printing​

![](./LMES Label Printing Guide.assets/wps15-20251111090605-z5ohwy3.jpg)

Configure the label printing function in the system project. To ensure normal use, function templates such as Work Order Management, Product Management, Process Management, Label Management, Barcode Management, Flow Management, Formula Management, and System Settings are mandatory.

![](./LMES Label Printing Guide.assets/wps16-20251111090605-d7dkq9w.jpg) ![](./LMES Label Printing Guide.assets/wps17-20251111090605-cqh1kpu.jpg)

2.2 Label Management Function Configuration​

  1. Open CMS → System Settings → Printer Settings: Fill in the Printer Name (consistent with label software), Printer IP (fill in 127.0.0.1 for local machine), Template Path (refer to point 3), and click "Update Configuration" to save.

![](./LMES Label Printing Guide.assets/wps18-20251111090605-46fqe4t.jpg)

  1. Printer Connection Test: Click the "Test" button, prompting successful connection. If not successful, please check the software installation and settings.

![](./LMES Label Printing Guide.assets/wps19-20251111090605-kuiose7.jpg)

  1. Open Process Management → Process List, select the process requiring label printing, configure the label printing flow, and save.

![](./LMES Label Printing Guide.assets/wps20-20251111090605-waydom1.jpg)

  1. Open Process Management → Station List, select the station configured for label printing, and configure the label printing interaction variables.

![](./LMES Label Printing Guide.assets/wps21-20251111090605-lxcwwhr.jpg)

  1. "Product ID" and "Product Identification Code" in variables are used to find the corresponding product model in production. Please choose one according to the actual situation:
  • Product ID: When the marking station is not the first station, the inbound can provide a product ID with processing records. In this case, configure the Product ID variable, which can be consistent with the inbound barcode.
  • Product Identification Code: Used when the marking station is the first station or the equipment cannot provide a Product ID. Fill in when creating a product; the variable content must be consistent with the product identification code of the current production to print successfully.

![](./LMES Label Printing Guide.assets/wps22-20251111090605-bazqvdj.jpg)

  1. Product Management: Create new Product Name, Product Model, Product Identification Code.

![](./LMES Label Printing Guide.assets/wps23-20251111090605-gcczemh.jpg)

  1. Formula Management: Create a new formula and define the process route.

![](./LMES Label Printing Guide.assets/wps24-20251111090605-t3p1h9o.jpg)

  1. Label Management: Create a new label, fill in the Label Name, select the corresponding Product and Printing Station, select the Printer and Template, set the Number of Prints, configure the data mapping relationship, and save.
  • Dynamic Field: Corresponds to the named data source in the template, names must be consistent.
  • Data Type: Variable, Generation Rule, or Field, select as needed.
  • Data Source: Set the source according to the data type.

![](./LMES Label Printing Guide.assets/wps25-20251111090605-zdx443k.jpg) ![](./LMES Label Printing Guide.assets/wps26-20251111090605-ysolygi.jpg)

2.3 Label Printing Test​

  1. Enter Variable Management and observe signal status. During simulation testing, you can manually trigger the print signal and check the print result.

![](./LMES Label Printing Guide.assets/wps27-20251111090605-gw30igz.jpg)

  1. Check the printer output label. When selecting PDF file printing, check the output file in the corresponding path to confirm if the content is correct.

![](./LMES Label Printing Guide.assets/wps28-20251111090605-tz71siq.jpg)