EPL (Yiyuyan) is a programming language that uses Chinese as its programming code; it is known for being "easy", and its founder is Wu Tao. An early version of EPL was named E Language. The earliest version can be traced back to September 11, 2000. The original purpose of creating EPL was to practice programming in Chinese, so that Chinese people could write programs with Chinese thinking without having to learn Western thinking. The birth of EPL greatly lowered the threshold for programming and the difficulty of learning. Since 2000, EPL has developed to a certain scale, with impressive functionality and user numbers.
EPL currently supports only 32-bit applications, so it can only call the 32-bit dll (ZMPCL_x86.dll).
Some of the code is as follows:
.Assembly WindowAssembly_StartupWindow
.Subroutine _Button1_Clicked .Local variable PrinterStatus, Short integer, Static
PrinterStatus = ConnectPrinter (255) .If (PrinterStatus ≠ 0) MessageBox ("Please confirm the printer connection status", 0, ) Return () .Else
.End If
ClearBuffer () PrintDarkness (10) PrintSpeed (40) ' 203dpi: 1MM=8dot PrintLabelHeight (360, 16) ' 45mm high PrintLabelWidth (400) ' 50mm wide
PrintBuiltInText (24, 24, 0, 2, 1, 1, 78, "ZMIN1234567") ' ASCII value of character N is 78; ASCII value of character B is 66
PrintTrueTypeText (24, 64, 32, 0, "SimSun", 1, 400, 0, 0, 0, "A1", "ZMIN barcode printer test") PrintTrueTypeText (24, 120, 32, 0, "SimHei", 1, 400, 0, 0, 0, "A2", "SimHei ZMIN Printer test")
Create1DBarcode (24, 180, 0, "1A", 2, 3, 80, 66, "123456789") ' ASCII value of character N is 78; ASCII value of character B is 66
ExecutePrintJob (1, 1) DisconnectPrinter ()
Sample source code download: /downloads/sdk-all/
