Preview only show first 10 pages with watermark. For full document please download

Mobileprinter.dll Library Introduction

   EMBED


Share

Transcript

MobilePrinter.DLL Library Introduction Ver. 1.00 Application Engineering Dept. MobilePrinter.DLL Library Introduction TSC AUTO ID Technology Co., Ltd. MobilePrinter.DLL Library Introduction 1.1. Namespaces Namespace MobilePrinter MobilePrinter.BarcodePrinter MobilePrinter.Connectivity 1.2. MobilePrinter Namespace Enumeration Description The MobilePrinter namespace contains fundamental classes. The MobilePrinter.BarcodePrinter namespace contains class and methods for generating printer command codes. The MobilePrinter.Connectivity namespace contains class and methods for Bluetooth communicating. Description MobilePrinter.Alignment Specifies constants defining the alignment of text and barcode. Member Name Description Default Align to default position. Left Align to left. Center Align to center. Right Align to right. MobilePrinter.BarcodeType Specifies constants defining the types of barcode. Member Name Description Code128 CODE 128 barcode by auto mode. Code128A CODE 128 barcode by mode A. Code128B CODE 128 barcode by mode B. Code128C CODE 128 barcode by mode C. Interleaved2of5 Interleaved 2 of 5 barcode. Interleaved2of5withCheckDigit Interleaved 2 of 5 barcode with check digit. Code39 CODE39 barcode. Code39withCheckDigit CODE39 barcode with check digit. Code93 CODE93 barcode. EAN128 EAN128 barcode. EAN14 EAN14 barcode. EAN13 EAN13 barcode. EAN13Plus2 EAN13 with 2 digits add-on. EAN13Plus5 EAN13 with 2 digits add-on. EAN8 EAN8 barcode. EAN8Plus2 EAN8 with 2 digits add-on. EAN8Plus5 EAN8 with 2 digits add-on. CODABAR CODABAR barcode. POSTNET POSTNET barcode. CHINAPOST CHINEPOST barcode. UPCA UPCA barcode. UPCAPlus2 UPCA with 2 digits add-on. UPCAPlus5 UPCA with 2 digits add-on. UPCE UPCE barcode. UPCEPlus2 UPCE with 2 digits add-on. UPCEPlus5 UPCE with 2 digits add-on. MSI MSI barcode. MSIwithCheckDigit MSI barcode with check digit. PLESSY PLESSY barcode. ITF14 ITF14 barcode. Code11 CODE11 barcode. TSC AUTO ID Technology Co., Ltd. Page 2 MobilePrinter.Direction Specifies constants defining the direction of printout. Member Name Description Define the direction of printout is from top to TopToBottom bottom. Define the direction of printout is from top to BottomToTop bottom. MobilePrinter.HumanReadable Specifies constants defining the human readable characters in barcode. Member Name Description None No human readable characters under barcode. Human readable characters align to the left of Left barcode. Human readable characters align to the center of Center barcode. Human readable characters align to the right of Right barcode. MobilePrinter.LineType Specifies constants defining the human readable characters in barcode. Member Name Description Black Black line. White White line. Reverse Reverse line. MobilePrinter.MaxiCodeMode Specifies constants defining the mode of MaxiCode besides USA and Canada mode. Member Name Description Mode4 MaxiCode mode 4. Mode5 MaxiCode mode 5. MobilePrinter.MeasurementUnitSystem Specifies constants defining the unit system for all objects. Member Name Description dot Unit is dot. (Default) mm Unit is mm. inch Unit is inch. MobilePrinter.Mirror Specifies constants defining the mirrored printout. Member Name Description No Normal image. Yes Mirrored image. MobilePrinter.NarrorwWideRatio Specifies constants defining the ratio of narrow bar and wide bar in barcode. Member Name Description OneToOne The ration of narrow and wide bar is 1:1. OneToTwo The ration of narrow and wide bar is 1:2. OneToThree The ration of narrow and wide bar is 1:3. TwoToFive The ration of narrow and wide bar is 2:5. ThreeToSeven The ration of narrow and wide bar is 3:7. MobilePrinter.PDF417EccLevel Specifies constants defining the ECC level of PDF417. Member Name Description E00 ~ E08 Define the ECC level of PDF417, 0 ~ 8. TSC AUTO ID Technology Co., Ltd. Page 3 MobilePrinter.PDF417Truncated Specifies constants defining the numbers of row in PDF417. Member Name Description NotTruncated Normal PDF417. Truncated Truncated PDF417. MobilePrinter.PrinterFontType Specifies constants defining the printer’s internal fonts. Member Name Description Font0 Printer’s internal font 0 (true type font Roman.TTF). Font1 Printer’s internal font 1. Font2 Printer’s internal font 2. Font3 Printer’s internal font 3. Font4 Printer’s internal font 4. Font5 Printer’s internal font 5. Font6 Printer’s internal font 6. (OCR-B) Font7 Printer’s internal font 7. (OCR-B) Font8 Printer’s internal font 8. (OCR-A) RomanTTF Printer’s internal true type font Roman.TTF. MobilePrinter.PrinterMemoryID Specifies constants defining the printer’s memory device ID. Member Name Description DRAM DRAM FLASH FLASH CARD CARD MobilePrinter.PrinterResolution Specifies constants defining the resolution of printer. Member Name Description dpi203 The resolution is 203 dpi. (1 mm = 8 dots) dpi300 The resolution is 300 dpi. (1 mm = 11.8 dots) dpi600 The resolution is 600 dpi. (1 mm = 23.6 dots) MobilePrinter.QREccLevel Specifies constants defining the ECC level of QR code. Member Name Description L ECC level is 7%. M ECC level is 15%. Q ECC level is 25%. H ECC level is 30%. MobilePrinter.QRMask Specifies constants defining the mask type of QR code. Member Name Description S0 ~ S8 Define the mask type. Default is S7. MobilePrinter.QRModel Specifies constants defining the model of QR code. Member Name Description OriginalVersion Original version. (Default) EnhancedVersion Enhanced version. TSC AUTO ID Technology Co., Ltd. Page 4 MobilePrinter.Reverse Specifies constants defining the reverse image. Member Name Description No Normal image. Yes Reversed image. MobilePrinter.Rotation Specifies constants defining the rotation degree of text and barcode. Member Name Description Deg0 Rotate 0 degree. Deg90 Rotate 90 degree. Deg180 Rotate 180 degree. Deg270 Rotate 270 degree. MobilePrinter.RSSBarcodeType Specifies constants defining the types of RSS barcode. Member Name Description RSS14 RSS14 RSS14Truncated RSS14 Truncated RSS14Stacked RSS14 Stacked RSS14StackedOmnidirectional RSS14 Stacked Omnidirectional RSSLimited RSS Limited UPCA UPCA UPCE UPCE EAN13 EAN13 EAN8 EAN8 MobilePrinter.SensorType Specifies constants defining the types of sensor. Member Name Description Gap Sensor for the media with gap. BlackMark Sensor for the media with mark on the back. Continuous Sensor for continuous media. MobilePrinter.ShowConnectedPrinterName Pop up the printer name when connection is successful Member Name Description No No action after connection. Yes Pop up the printer name. TSC AUTO ID Technology Co., Ltd. Page 5 MobilePrinter.SymbolSize TSC AUTO ID Technology Co., Ltd. Specifies constants defining the types of RSS barcode. Member Name Description Square010x010 10 x 10 DataMatrix barocde. Square012x012 12 x 12 DataMatrix barocde. Square014x014 14 x 14 DataMatrix barocde. Square016x016 16 x 16 DataMatrix barocde. Square018x018 18 x 18 DataMatrix barocde. Square020x020 20 x 20 DataMatrix barocde. Square022x022 22 x 22 DataMatrix barocde. Square024x024 24 x 24 DataMatrix barocde. Square026x026 26 x 26 DataMatrix barocde. Square032x032 32 x 32 DataMatrix barocde. Square036x036 36 x 36 DataMatrix barocde. Square040x040 40 x 40 DataMatrix barocde. Square044x044 44 x 44 DataMatrix barocde. Square048x048 48 x 48 DataMatrix barocde. Square052x052 52 x 52 DataMatrix barocde. Square064x064 64 x 64 DataMatrix barocde. Square072x072 72 x 72 DataMatrix barocde. Square080x080 80 x 80 DataMatrix barocde. Square088x088 88 x 88 DataMatrix barocde. Square096x096 96 x 96 DataMatrix barocde. Square104x104 104 x 104 DataMatrix barocde. Square120x120 120 x 120 DataMatrix barocde. Square132x132 132 x 132 DataMatrix barocde. Square144x144 144 x 144 DataMatrix barocde. Rectanbular08x18 8 x 18 DataMatrix barocde. Rectanbular08x32 8 x 32 DataMatrix barocde. Rectanbular12x26 12 x 26 DataMatrix barocde. Rectanbular12x36 12 x 36 DataMatrix barocde. Rectanbular16x36 16 x 36 DataMatrix barocde. Rectanbular16x48 16 x 48 DataMatrix barocde. Page 6 1.3. MobilePrinter.BarcodePrinter Namespace Classes MobilePrinter.BarcodePrinter.Drawing MobilePrinter.BarcodePrinter.FileManagement MobilePrinter.BarcodePrinter.PostPrintAction MobilePrinter.BarcodePrinter.StatusPolling MobilePrinter.BarcodePrinter.SystemSetup Description The class contains methods to draw the text, barcodes, lines etc on label. The class contains methods to download file to printer. The class contains methods to set post-print action in printer. The class contains methods to get the printer’s information. The class contains methods to set the printer’s setting and defines the label dimension. Structure Description MobilePrinter.BarcodePrinter.StructOfFileList Define the structure to get the form list from printer. Member Name Description int count The count of files. string[] items An array stores file items. bool successful Check the status of getting file list. MobilePrinter.BarcodePrinter.StructOfInputInfoOfKP200 Define the structure to get the prompt string from printer. To simulate the application of KP-200/KP-200Plus. Member Name Description string promptString Prompt string. int dataType The data type for input. string inputString Input string. bool successful Check the status of getting INPUT info. Methods in class MobilePrinter.BarcodePrinter.Drawing Description and Parameters public static bool AZTEC(float x, float y, Rotation rotation, string data) Draw AZTEC barcode. Parameters x y rotation data public static bool AZTEC(float x, float y, Rotation rotation, int multiple, string data) Draw AZTEC barcode. Parameters x y rotation multiple data TSC AUTO ID Technology Co., Ltd. Description Define the horizontal start position. Define the vertical start position. Define the rotating degree. Define the data of barcode. Description Define the horizontal start position. Define the vertical start position. Define the rotating degree. Define the size of barcode. Define the data of barcode. Page 7 public static bool AZTEC(float x, float y, Rotation rotation, int multiple, int eccLevel1to300, string data) Draw AZTEC barcode. Parameters x y rotation multiple eccLevel1to300 data Description Define the horizontal start position. Define the vertical start position. Define the rotating degree. Define the element module size of barcode. Define the ECC lebel. Define the data of barcode. public static bool AZTEC(float x, float y, Rotation rotation, int multiple, int eccLevel1to300, Reverse reverse, string data) Draw AZTEC barcode. Parameters x y rotation multiple eccLevel1to300 reverse data Description Define the horizontal start position. Define the vertical start position. Define the rotating degree. Define the multiple of barcode. Define the ECC label. Define reversed output. Define the data of barcode. public static bool Barcode(float x, float y, BarcodeType type, float height, HumanReadable humanreadable, Rotation rotation, NarrorwWideRatio ratio, int multiple, string data) Draw 1D barcode. Parameters x y type height humanreadable rotation ratio multiple data public static bool Barcode(float x, float y, BarcodeType type, float height, HumanReadable humanreadable, Rotation rotation, NarrorwWideRatio ratio, int multiple, Alignment alignment, string data) TSC AUTO ID Technology Co., Ltd. Draw 1D barcode. Parameters x y type height humanreadable rotation ratio multiple alignment data Description Define the horizontal start position. Define the vertical start position. Define the type of barcode. Define the height of barcode. Define the human readable characters of barcode. Define the rotating degree. Define the ration of narrow and wide bar. Define the multiple of barcode. Define the data of barcode. Description Define the horizontal start position. Define the vertical start position. Define the type of barcode. Define the height of barcode. Define the human readable characters of barcode. Define the rotating degree. Define the ration of narrow and wide bar. Define the multiple of barcode. Define the alignment of barcode. Define the data of barcode. Page 8 public static bool Box(float x, float y, float width, float height, float thickness) Draw box. Parameters x y width height thickness Description Define the horizontal start position. Define the vertical start position. Define the width of box. Define the height of box. Define the thickness of box. public static bool Box(float x, float y, float width, float height, float thickness, float radiusOfRoundCorner) Draw box. Parameters x y width height thickness radiusOfRoundCorner Description Define the horizontal start position. Define the vertical start position. Define the width of box. Define the height of box. Define the thickness of box. Define the radius of round corner. public static bool Circle(float xUpperLeftCorner, float yUpperLeftCorner, float diameter, float thickness) Draw circle. Parameters xUpperLeftCorner yUpperLeftCorner diameter thickness Description Define the horizontal start position. Define the vertical start position. Define the diameter of circle. Define the thickness of circle. public static bool DataMatrix(float x, float y, string data) Draw DataMatrix. Parameters x y data Description Define the horizontal start position. Define the vertical start position. Define the data of DataMatrix. public static bool DataMatrix(float x, float y, int multiple, string data) Draw DataMatrix. Parameters x y mulriple data Description Define the horizontal start position. Define the vertical start position. Define the multiple of DataMatrix. Define the data of DataMatrix. public static bool DataMatrix(float x, float y, SymbolSize size, string data) Draw DataMatrix. Parameters x y size data Description Define the horizontal start position. Define the vertical start position. Define the symbol size of DataMatrix. Define the data of DataMatrix. TSC AUTO ID Technology Co., Ltd. Page 9 public static bool DataMatrix(float x, float y, int multiple, SymbolSize size, string data) Draw DataMatrix. Parameters x y multiple size data Description Define the horizontal start position. Define the vertical start position. Define the multiple of DataMatrix. Define the symbol size of DataMatrix. Define the data of DataMatrix. public static bool Diagonal(float x, float y, float width, float height, float thickness) Draw diagonal. Parameters x y width height thickness Description Define the horizontal start position. Define the vertical start position. Define the width of diagonal. Define the height of diagonal. Define the thickness of diagonal. public static bool GS1RSSBarcode(float x, float y, RSSBarcodeType type, Rotation rotation, int multiple, int separatorRowHeight, string data) Draw GS1 RSS barocde. Parameters x y type rotation multiple separatorRowHeight data Description Define the horizontal start position. Define the vertical start position. Define the type of RSS barcode. Define the rotating degree. Define the multiple of barcode. Define the separator row height. Define the data of barcode. public static bool GS1RSSBarcode(float x, float y, RSSBarcodeType type, Rotation rotation, int multiple, int separatorRowHeight, string primaryData, string secondaryData) Draw GS1 RSS barocde. Parameters x y type rotation multiple separatorRowHeight primaryData secondaryData Description Define the horizontal start position. Define the vertical start position. Define the type of RSS barcode. Define the rotating degree. Define the multiple of barcode. Define the separator row height Define the primary data. Define the secondary data. public static bool GS1RSSEXPBarcode(float x, float y, Rotation rotation, int multiple, int separatorRowHeight, int segmentWidth, string data) Draw GS1 RSS Expanded barocde. Parameters Description x Define the horizontal start position. y Define the vertical start position. rotation Define the rotating degree. multiple Define the multiple of barcode. separatorRowHeight Define the separator row height. segmentWidth Define the segment width. data Define the data of barcode. TSC AUTO ID Technology Co., Ltd. Page 10 public static bool GS1RSSEXPBarcode(float x, float y, Rotation rotation, int multiple, int separatorRowHeight, int segmentWidth, string primaryData, string secondaryData) Draw GS1 RSS Expanded barocde. Parameters Description x Define the horizontal start position. y Define the vertical start position. rotation Define the rotating degree. multiple Define the multiple of barcode. separatorRowHeight Define the separator row height segmentWidth Define the segment width. primaryData Define the primary data. secondaryData Define the secondary data. public static bool GS1UCC128CCABarcode(float x, float y, Rotation rotation, int multiple, int separatorRowHeight, float lineHeight, string data) Draw GS1 UCC/EAN-128 & CC-A/B barocde. Parameters Description x Define the horizontal start position. y Define the vertical start position. rotation Define the rotating degree. multiple Define the multiple of barcode. separatorRowHeight Define the separator row height lineHeight Define the line height. data Define the data of barcode. public static bool GS1UCC128CCABarcode(float x, float y, Rotation rotation, int multiple, int separatorRowHeight, float lineHeight, string primaryData, string secondaryData) Draw GS1 UCC/EAN-128 & CC-A/B barocde. Parameters Description x Define the horizontal start position. y Define the vertical start position. rotation Define the rotating degree. multiple Define the multiple of barcode. separatorRowHeight Define the separator row height lineHeight Define the line height. primaryData Define the primary data. secondaryData Define the secondary data. public static bool GS1UCC128CCCBarcode(float x, float y, Rotation rotation, int multiple, int separatorRowHeight, float lineHeight, string data) Draw GS1 UCC/EAN-128 & CC-C barocde. Parameters Description x Define the horizontal start position. y Define the vertical start position. rotation Define the rotating degree. multiple Define the multiple of barcode. separatorRowHeight Define the separator row height lineHeight Define the line height. data Define the data of barcode. TSC AUTO ID Technology Co., Ltd. Page 11 public static bool GS1UCC128CCCBarcode(float x, float y, Rotation rotation, int multiple, int separatorRowHeight, float lineHeight, string primaryData, string secondaryData) Draw GS1 UCC/EAN-128 & CC-C barocde. Parameters Description x Define the horizontal start position. y Define the vertical start position. rotation Define the rotating degree. multiple Define the multiple of barcode. separatorRowHeight Define the separator row height lineHeight Define the line height. primaryData Define the primary data. secondaryData Define the secondary data. public static bool Line(float x, float y, float width, float height, LineType type) Draw Line. Parameters x y width height type Description Define the horizontal start position. Define the vertical start position. Define the width of line. Define the height of line. Define the type of line. public static bool MaxiCodeCanada(float x, float y, string _3DigitClassOfService, string _3DigitCountryCode, string _6DigitPostCode, string data) Draw Canada MaxiCode. Parameters x y _3DigitClassOfService _3DigitCountryCode _6DigitPostCode data Description Define the horizontal start position. Define the vertical start position. Define class of service. 3-digit number. Define country code. 3-digit number. Define post code. 6-digit number. Define data of MaxiCode. public static bool MaxiCodeMode4and5(float x, float y, MaxiCodeMode mode, string data) Draw mode 4 and mode 5 MaxiCode. Parameters Description x Define the horizontal start position. y Define the vertical start position. mode Define mode of MaxiCode. data Define data of MaxiCode. public static bool MaxiCodeUSA(float x, float y, string _3DigitClassOfService, string _3DigitCountryCode, string _5DigitZipCode, string _4DigitAddOn, string data) Draw USA MaxiCode. Parameters x y _3DigitClassOfServic _3DigitCountryCode _5DigitZipCode _4DigitAddOn data TSC AUTO ID Technology Co., Ltd. Description Define the horizontal start position. Define the vertical start position. Define class of service. 3-digit number. Define country code. 3-digit number. Define zip code. 5-digit number. Define add-on code. 4-digit number. Define data of MaxiCode. Page 12 public static bool PDF417(float x, float y, Rotation rotation, string data) Draw PDF417. Parameters x y rotation data Description Define the horizontal start position. Define the vertical start position. Define the rotating degree. Define data of PDF417. public static bool PDF417(float x, float y, Rotation rotation, int multipleOfCellWidth, int multipleOfCellHeight, string data) Draw PDF417. Parameters x y rotation multipleOfCellWidth multipleOfCellHeight data Description Define the horizontal start position. Define the vertical start position. Define the rotating degree. Define the multiple of cell width. Define the multiple of cell height. Define data of PDF417. public static bool PDF417(float x, float y, Rotation rotation, PDF417Truncated truncated,string data) Draw PDF417. Parameters x y rotation truncated data Description Define the horizontal start position. Define the vertical start position. Define the rotating degree. Define truncated PDF417. Define data of PDF417. public static bool PDF417(float x, float y, Rotation rotation, int multipleOfCellWidth, int multipleOfCellHeight, PDF417Truncated truncated, string data) Draw PDF417. Parameters x y rotation multipleOfCellWidth multipleOfCellHeight truncated data Description Define the horizontal start position. Define the vertical start position. Define the rotating degree. Define the multiple of cell width. Define the multiple of cell height. Define truncated PDF417. Define data of PDF417. Draw PDF417. Parameters x y public static bool PDF417(float x, float y, float width, float height, Rotation rotation, string data) width height rotation data TSC AUTO ID Technology Co., Ltd. Description Define the horizontal start position. Define the vertical start position. Define the width of region for generating PDF417. Define the height of region for generating PDF417. Define the rotating degree. Define data of PDF417. Page 13 Draw PDF417. Parameters x y public static bool PDF417(float x, float y, float width, float height, Rotation rotation, int multipleOfCellWidth, int multipleOfCellHeight, string data) width height rotation multipleOfCellWidth multipleOfCellHeight Data Draw PDF417. Parameters x y public static bool PDF417(float x, float y, float width, float height, Rotation rotation, PDF417Truncated truncated, string data) width height rotation truncated data Draw PDF417. Parameters x y public static bool PDF417(float x, float y, float width, float height, Rotation rotation, int multipleOfCellWidth, int multipleOfCellHeight, PDF417Truncated truncated, string data) public static bool PDF417(float x, float y, Rotation rotation, PDF417EccLevel eccLevel,string data) TSC AUTO ID Technology Co., Ltd. width height rotation multipleOfCellWidth multipleOfCellHeight truncated data Draw PDF417. Parameters x y rotation eccLevel data Description Define the horizontal start position. Define the vertical start position. Define the width of region for generating PDF417. Define the height of region for generating PDF417. Define the rotating degree. Define the multiple of cell width. Define the multiple of cell height. Define data of PDF417. Description Define the horizontal start position. Define the vertical start position. Define the width of region for generating PDF417. Define the height of region for generating PDF417. Define the rotating degree. Define truncated PDF417. Define data of PDF417. Description Define the horizontal start position. Define the vertical start position. Define the width of region for generating PDF417. Define the height of region for generating PDF417. Define the rotating degree. Define the multiple of cell width. Define the multiple of cell height. Define truncated PDF417. Define data of PDF417. Description Define the horizontal start position. Define the vertical start position. Define the rotating degree. Define ECC level. Define data of PDF417. Page 14 public static bool PDF417(float x, float y, Rotation rotation, PDF417EccLevel eccLevel, int multipleOfCellWidth, int multipleOfCellHeight, string data) Draw PDF417. Parameters x y rotation eccLevel multipleOfCellWidth multipleOfCellHeight data Description Define the horizontal start position. Define the vertical start position. Define the rotating degree. Define ECC level. Define the multiple of cell width. Define the multiple of cell height. Define data of PDF417. public static bool PDF417(float x, float y, Rotation rotation, PDF417EccLevel eccLevel, PDF417Truncated truncated, string data) Draw PDF417. Parameters x y rotation eccLevel truncated data Description Define the horizontal start position. Define the vertical start position. Define the rotating degree. Define ECC level. Define truncated PDF417. Define data of PDF417. public static bool PDF417(float x, float y, Rotation rotation, PDF417EccLevel eccLevel, int multipleOfCellWidth, int multipleOfCellHeight, PDF417Truncated truncated, string data) Draw PDF417. Parameters x y rotation eccLevel multipleOfCellWidth multipleOfCellHeight truncated data Description Define the horizontal start position. Define the vertical start position. Define the rotating degree. Define ECC level. Define the multiple of cell width. Define the multiple of cell height. Define truncated PDF417. Define data of PDF417. Draw PDF417. Parameters x y public static bool PDF417(float x, float y, float width, float height, Rotation rotation, PDF417EccLevel eccLevel, string data) width height rotation eccLevel data TSC AUTO ID Technology Co., Ltd. Description Define the horizontal start position. Define the vertical start position. Define the width of region for generating PDF417. Define the height of region for generating PDF417. Define the rotating degree. Define ECC level. Define data of PDF417. Page 15 Draw PDF417. Parameters x y public static bool PDF417(float x, float y, float width, float height, Rotation rotation, PDF417EccLevel eccLevel, int multipleOfCellWidth, int multipleOfCellHeight, string data) width height rotation eccLevel multipleOfCellWidth multipleOfCellHeight Data Draw PDF417. Parameters x y public static bool PDF417(float x, float y, float width, float height, Rotation rotation, PDF417EccLevel eccLevel, PDF417Truncated truncated, string data) width height rotation eccLevel truncated data Draw PDF417. Parameters x y public static bool PDF417(float x, float y, float width, float height, Rotation rotation, PDF417EccLevel eccLevel, int multipleOfCellWidth, int multipleOfCellHeight, PDF417Truncated truncated, string data) public static bool PutBMP(float x, float y, string downloadedBmpImageFilename) TSC AUTO ID Technology Co., Ltd. width height rotation eccLevel multipleOfCellWidth multipleOfCellHeight truncated data Description Define the horizontal start position. Define the vertical start position. Define the width of region for generating PDF417. Define the height of region for generating PDF417. Define the rotating degree. Define ECC level. Define the multiple of cell width. Define the multiple of cell height. Define data of PDF417. Description Define the horizontal start position. Define the vertical start position. Define the width of region for generating PDF417. Define the height of region for generating PDF417. Define the rotating degree. Define ECC level. Define truncated PDF417. Define data of PDF417. Description Define the horizontal start position. Define the vertical start position. Define the width of region for generating PDF417. Define the height of region for generating PDF417. Define the rotating degree. Define ECC level. Define the multiple of cell width. Define the multiple of cell height. Define truncated PDF417. Define data of PDF417. Draw downloaded BMP image. Parameters x y downloadedBmpImageFilename Description Define the horizontal start position. Define the vertical start position. Print the specified BMP image out. Page 16 public static bool PutPCX(float x, float y, string downloadedPcxImageFilename) Draw downloaded PCX image. Parameters x y downloadedPcxImageFilename public static bool QRCode(float x, float y, QREccLevel eccLevel, int multiple, Rotation rotation, string data) Draw QR code. Parameters x y eccLevel multiple rotation data Description Define the horizontal start position. Define the vertical start position. Define ECC level. Define multiple of QR code. Define the rotating degree. Define data of QR code. public static bool QRCode(float x, float y, QREccLevel eccLevel, int multiple, Rotation rotation, QRModel model, string data) Draw QR code. Parameters x y eccLevel multiple rotation model data Description Define the horizontal start position. Define the vertical start position. Define ECC level. Define multiple of QR code. Define the rotating degree. Define model of QR code. Define data of QR code. public static bool QRCode(float x, float y, QREccLevel eccLevel, int multiple, Rotation rotation, QRMask mask, string data) Draw QR code. Parameters x y eccLevel multiple rotation mask data Description Define the horizontal start position. Define the vertical start position. Define ECC level. Define multiple of QR code. Define the rotating degree. Define mask of QR code. Define data of QR code. public static bool QRCode(float x, float y, QREccLevel eccLevel, int multiple, Rotation rotation, QRModel model, QRMask mask, string data) Draw QR code. Parameters x y eccLevel multiple rotation model mask data Description Define the horizontal start position. Define the vertical start position. Define ECC level. Define multiple of QR code. Define the rotating degree. Define model of QR code. Define mask of QR code. Define data of QR code. TSC AUTO ID Technology Co., Ltd. Description Define the horizontal start position. Define the vertical start position. Print the specified PCX image out. Page 17 public static bool Text(float x, float y, PrinterFontType fontType, Rotation rotation, int xMultiple, int yMultiple, string data) Draw text. Parameters x y fontType rotation xMultiple yMultiple data Description Define the horizontal start position. Define the vertical start position. Define the font type. Define the rotating degree. Define the multiple of font width. Define the multiple of font height. Define data of text. public static bool Text(float x, float y, PrinterFontType fontType, Rotation rotation, int xMultiple, int yMultiple, Alignment alignment, string data) Draw text. Parameters x y fontType rotation xMultiple yMultiple alignment data Description Define the horizontal start position. Define the vertical start position. Define the font type. Define the rotating degree. Define the multiple of font width. Define the multiple of font height. Define the alignment of text. Define data of text. public static bool Text(float x, float y, string fontName, Rotation rotation, int xMultiple, int yMultiple, string data) Draw text. Parameters x y fontName rotation xMultiple yMultiple data Description Define the horizontal start position. Define the vertical start position. Define the font type. Define the rotating degree. Define the multiple of font width. Define the multiple of font height. Define data of text. public static bool Text(float x, float y, string fontName, Rotation rotation, int xMultiple, int yMultiple, Alignment alignment, string data) Draw text. Parameters x y fontName rotation xMultiple yMultiple alignment data Description Define the horizontal start position. Define the vertical start position. Define the font type. Define the rotating degree. Define the multiple of font width. Define the multiple of font height. Define the alignment of text. Define data of text. TSC AUTO ID Technology Co., Ltd. Page 18 Methods in class MobilePrinter.BarcodePrinter.FileManagement Description public static bool DownloadFileToPrinter(PrinterMemoryID memoryID) Download file into printer’s memory device. Parameters Description Define the memory device ID for memoryID downloading file into printer. public static int DownloadFileToPrinter(PrinterMemoryID memoryID, string sourceFullFilePathWithFileName, string destinationFileNameInPrinter) Download file into printer’s memory device. Parameters Description Define the memory device ID for memoryID downloading file into printer. sourceFullFilePathWithFileName The full file path with resource file name. destinationFileNameInPrinter The full file path with destination file name Methods in class MobilePrinter.BarcodePrinter.PostPrintAction Description public static bool Cutter(int interval) Set the post print action is cutter mode. Parameters Description interval Set number of printing labels per cut. public static bool Cutter() public static bool None() Set the post print action is cutter in batch mode. Set the post print action is no action. public static bool PartialCutter(int interval) Set the post print action is partial cutter mode. Parameters Description interval Set number of printing labels per cut. public static bool PartialCutter() public static bool Peel() public static bool Tear() Set the post print action is partial cutter in batch mode. Set the post print action is peeler mode. Set the post print action is tear mode. Methods in class MobilePrinter.BarcodePrinter.StatusPolling public static StructOfFileList GetFileList() public static StructOfFileList GetFormList() public static String GetPrinterName() public static StructOfInputInfoOfKP200 GetPromptData() public static string GetStatus (Object portName) public static bool RestartPrinter() TSC AUTO ID Technology Co., Ltd. Description Inquire file list from printer. Inquire form list (BAS file) from printer. Inquire printer name from printer. Get the prompt data from printer if a BAS file with INPUT command is running. Inquire printer status. Restart printer. Page 19 Methods in class MobilePrinter.BarcodePrinter.SystemSetup Description public static bool BlackMarkSize(float height) Define the dimension of black mark. Parameters Description height Define the height of black mark. public static bool BlackMarkSize(float height, float offset) Define the dimension of black mark. Parameters Description height Define the height of black mark. offset Define the offset of black mark. public static bool ClearCommandBuffer() public static bool ClearImageBuffer() Clear command buffer. Clear image buffer. public static bool Darkness(float density) Define the printing darkness. Parameters Description density Define the darkness for printing. public static bool Darkness(int density) Define the printing darkness. Parameters Description density Define the darkness for printing. public static bool Direction(Direction direction, Mirror mirror) Define the direction of printout and mirrored image. Parameters Description direction Define the direction of printout. mirror Define the mirrored printout. public static bool Direction(Direction direction) Define the direction of printout. Parameters Description direction Define the direction of printout. public static bool DumpDataToFile() Dump data in command buffer to file. public static bool GapSize(float height) Define the dimension of gap. Parameters Description height Define the height of gap. public static bool GapSize(float height, float offset) Define the dimension of gap. Parameters Description height Define the height of gap. offset Define the offset of gap. TSC AUTO ID Technology Co., Ltd. Page 20 public static bool LabelSetup(float labelWidth, float labelHeight, SensorType sensorType, float gap, float gapOffset, float speed, float density) Set up the parameters of printer. Parameters Description labelWidth Define label width. labelHeight Define label height. sensorType Define sensor type. gap Define the height of black mark or gap. gapOffset Define the offset of black mark or gap. speed Define the print speed. density Define the print darkness. public static bool LabelSetup(float labelWidth, float labelHeight, SensorType sensorType, float gap, float gapOffset, float speed, float density, Direction direction) Set up the parameters of printer. Parameters Description labelWidth Define label width. labelHeight Define label height. sensorType Define sensor type. gap Define the height of black mark or gap. gapOffset Define the offset of black mark or gap. speed Define the print speed. density Define the print darkness. direction Define the direction of printout. public static bool LabelSize(float width, float height) Define the dimension of label. Parameters Description width Define label width. height Define label height. public static bool PrintConfigureLabel() Print a configuration label. public static bool PrintLabels(int piece, int copies) Define the quantities of label for printing. Parameters Description piece Define how many sets of labels will be printed. Define how many copies should be printed for copies each particular label set. public static bool PrintLabels(int piece) Define the quantities of label for printing. Parameters Description piece Define how many sets of labels will be printed. public static bool RestorePrinterToFactoryDefault() Restore printer to factory default. public static bool SendCommand(string commandString) Send command to printer. Parameters commandString TSC AUTO ID Technology Co., Ltd. Description Command string which will be sent to printer. Page 21 public static bool SendCommand(byte[] command, int count) Send command to printer. Parameters command count Description Command in byte which will be sent to printer. The length of command. public static bool Speed(int ips) Define the print speed. Parameters ips Description Define the print speed. public static bool Speed(float ips) Define the print speed. Parameters ips Description Define the print speed. public static bool StopPositionAdjustment(float offset) Adjust the stop position while printing labels. Parameters Description Define the extra feeding length for stop position offset adjustment. public static void Unit(MeasurementUnitSystem unit, PrinterResolution resolution) Set the measurement unit system for objects. Parameters Description unit Define the measurement unit system. resolution The resolution of printer. TSC AUTO ID Technology Co., Ltd. Page 22 1.4. MobilePrinter.Connectivity Namespace Classes MobilePrinter.Connectivity.BlueTooth MobilePrinter.Connectivity.Ethernet Structure MobilePrinter.Connectivity.StructReceiveData Methods in class MobilePrinter.Connectivity.BlueTooth public static void About() public Bluetooth() public bool Close() public bool Connect(ShowConnectedPrinterName showConnectedPrinterName) public bool Connect(string serialPortIn, string serialPortOut, ShowConnectedPrinterName showConnectedPrinterName) public bool Print() public StructReceiveData ReceiveData() public bool Reconnect(ShowConnectedPrinterName showConnectedPrinterName) public bool SendData(byte[] data, int offset, int count) public bool SendData(string data) public bool IsConnected Methods in class MobilePrinter.Connectivity.Ethernet public static void About() public Ethernet () public bool Close() public bool Connect(string ipAddress, int port, ShowConnectedPrinterName showConnectedPrinterName) public bool Connect(string ipAddress, ShowConnectedPrinterName showConnectedPrinterName) public bool Print() public StructReceiveData ReceiveData() public bool Reconnect(ShowConnectedPrinterName showConnectedPrinterName) public bool SendData(byte[] data, int offset, int count) public bool SendData(string data) public bool IsConnected TSC AUTO ID Technology Co., Ltd. Description Using to open Bluetooth, close Bluetooth and send data by Bluetooth. Description Define the structure to receive the data from Bluetooth. Description Pop up a message box and show the library version. Initializes a new instance of the Bluetooth class. Close Bluetooth port. Search and connect the Bluetooth without specified port number. Connect the Bluetooth by specified port number. Send data in BarcodePrinter.SystemSetup.PrinterCommandBuf to printer. Receive data from printer. Reconnect Bluetooth connection. Send binary data to printer. Send string data to printer. Bluetooth is connected. Description Pop up a message box and show the library version. Initializes a new instance of the Ethernet class. Close Bluetooth port. Connect the Ethernet by specified IP and port number. Connect the Ethernet by specified IP and fixed port number 9100. Send data in BarcodePrinter.SystemSetup.PrinterCommandBuf to printer. Receive data from printer. Reconnect Bluetooth connection. Send binary data to printer. Send string data to printer. Ethernet is connected. Page 23 Preset to use MobilePrinter.DLL Library in VS2008 C#. (You will need to install Windows Mobile 6 Professional SDK.) New open a project for “SmartDevice” TSC AUTO ID Technology Co., Ltd. Page 24 Select the target platform and .NET compact framework version as below. Choose the templates as “Device Application”. TSC AUTO ID Technology Co., Ltd. Page 25 Add reference for the project. Add MobilePrinter.dll. TSC AUTO ID Technology Co., Ltd. Page 26 Set project properties. TSC AUTO ID Technology Co., Ltd. Page 27 Cancel “Deploy the latest versions of the .NET Compact Framework” and save. Detail programming please refer to our example. TSC AUTO ID Technology Co., Ltd. Page 28 Preset the Bluetooth connection in WinCE 6.0 Pro Device (Following is the setting in Cipher Lab CP50 device) Default local name of Alpha-3R is BTSPP. Default local name of Alpha-3R is 0000 (4 zeros). TSC AUTO ID Technology Co., Ltd. Double click and set the advanced setting in this connection. Page 29 Set COM port. Tick “Serial Port”. TSC AUTO ID Technology Co., Ltd. Page 30