MW6 Barcode .NET Control Manual
Total Page:16
File Type:pdf, Size:1020Kb
Contents 1 Table of Contents Foreword 0 Part I Introduction 3 Part II Installation 3 1 Trial V.e..r.s..i.o..n.......................................................................................................................... 3 2 Full Ve..r.s..i.o..n........................................................................................................................... 5 Part III How to Distribute It 6 Part IV Reference Guide 6 1 Proper.t.i.e..s.............................................................................................................................. 6 BackColor Prop...e..r..t.y.. ................................................................................................................................................ 6 BarColor Prope..r..t.y.. ................................................................................................................................................... 6 BarHeight Prop..e..r..t.y.. ................................................................................................................................................. 6 BearerBarType.. .P..r..o..p..e...r.t..y.. ....................................................................................................................................... 7 BorderWidth P.r.o...p..e..r..t.y.. ............................................................................................................................................ 7 CheckDigit Pro.p...e..r..t.y.. ............................................................................................................................................... 7 CheckDigitToT.e..x..t.. .P..r..o..p..e...r.t..y.. .................................................................................................................................. 8 CodabarStartC.h..a..r.. .P..r..o..p...e..r..t.y.. .................................................................................................................................. 8 CodabarEndCh.a..r.. .P..r..o..p...e..r..t.y.. .................................................................................................................................... 8 Data Property .......................................................................................................................................................... 9 Narrow BarWidt..h.. .P..r..o..p...e..r..t.y.. ..................................................................................................................................... 9 Orientation Pr..o..p..e...r.t..y.. ............................................................................................................................................ 10 Show Text Pro..p..e...r.t..y.. .............................................................................................................................................. 10 Supplement P..r..o..p..e...r.t..y.. .......................................................................................................................................... 10 SupplementG.a..p... .P..r..o..p..e...r.t..y.. ................................................................................................................................... 11 SupplementT.y..p..e... .P..r..o..p..e...r.t..y.. ................................................................................................................................. 11 SymbologyTy.p..e... .P..r..o..p..e...r.t..y.. ................................................................................................................................... 11 TextFont Prop..e..r..t.y.. ................................................................................................................................................. 11 UPCESystem .P..r..o..p..e...r.t..y.. ......................................................................................................................................... 12 Wide2Narrow .R..a..t.i.o... .P..r..o..p..e...r.t..y.. ............................................................................................................................... 12 2 Metho..d..s............................................................................................................................... 12 CodeOne Met.h...o..d.. .................................................................................................................................................. 12 GetActualSize.. .M...e..t..h..o..d... ......................................................................................................................................... 13 MicroPDF417 M....e..t.h...o..d.. ............................................................................................................................................ 13 MicroQRCode. .M....e..t.h...o..d.. .......................................................................................................................................... 14 Render Metho..d... ..................................................................................................................................................... 14 SaveAsImage. .M....e..t.h...o..d.. .......................................................................................................................................... 15 SaveAsMemo..r.y.. .M....e..t.h...o..d.. ...................................................................................................................................... 15 SetSize Metho...d.. ..................................................................................................................................................... 16 3 Enum.e..r..a..t.i.o..n..s...................................................................................................................... 17 BearerBarTyp.e... .E..n..u..m....e..r..a..t.i.o...n.. .............................................................................................................................. 17 CodaBarChar .E..n...u..m....e..r..a..t.i.o..n... ................................................................................................................................. 17 Orientation En..u..m....e..r..a..t.i.o...n.. ..................................................................................................................................... 17 SupplementT.y..p..e... .E..n..u..m....e..r..a..t.i.o...n.. .......................................................................................................................... 17 SymbologyTy.p..e... .E..n..u..m....e..r..a..t.i.o...n.. ............................................................................................................................ 18 1 2 MW6 Barcode .NET Control Manual UPCESystem .E..n..u..m....e..r..a..t.i.o...n.. .................................................................................................................................. 20 Part V How to Use It in Reporting Services 20 1 Creat.e.. .a.. .R..e..p..o..r.t. .P...r.o..j.e..c..t...................................................................................................... 20 2 Add B..a..r.c..o..d..e..s...................................................................................................................... 24 Part VI License 29 Index 0 Introduction 3 1 Introduction MW6 Barcode .NET Control supports over 90 symbologies including Code 39, Code 128, GS1-128, EAN 13, EAN 8, UPC-A, UPC-E, Royal Mail 4 State, USPS OneCode, Deutsche Post Identcode, Deutsche Post Leitcode, Japan Postal Code, Micro PDF417, Micro QRCode, CodaBlock-F, Code 16K and Code 49, please check out this page for complete list of featured barcodes. It is a flexible and reliable .NET component and can create professional barcode images for your .NET application, you can save the barcode as different image format files, it is easy to print the barcodes using the PrintDocument Control provided by the .NET Framework. 2 Installation 2.1 Trial Version 1. The trial version Barcode .NET control adds "MW6 Demo" at the top of the barcode. 2. After the installation for the trial version is finished, copy MW6.Barcode.dll in VB.NET or C#.NET demo project sub folder of the destination folder (e.g. "C:\Program Files\MW6 .NET Components \Barcode") to your project folder. 3. Right click anywhere on the Toolbox to select the "Choose Items...". 4. In the "Choose Toolbox Items" dialog, select the ".NET Framework Components", click the "Browse" and select MW6.Barcode.dll. 4 MW6 Barcode .NET Control Manual 5. To use the control in your Windows form, just drag it from the Toolbox and drop it onto your form. Installation 5 2.2 Full Version 1. Uninstall the trial version barcode .NET control if applicable. 2. Complete the installation for the full version barcode .NET control, copy MW6.Barcode.dll in VB.NET or C# demo project sub folder of the destination folder (e.g. "C:\Program Files\MW6 .NET Components 6 MW6 Barcode .NET Control Manual \Barcode\2003") to your project folder to replace the trial version Barcode .NET control .dll file. 3 How to Distribute It If you want to redistribute the Barcode .NET control as part of your application, simply put MW6.Barcode.dll into application local folder on the target machine. 4 Reference Guide 4.1 Properties 4.1.1 BackColor Property Gets or sets the background color of the barcode. [Visual Basic .NET] Public Property BackColor As Color [C#] public Color BackColor {get; set;} Remarks The default value is white color. 4.1.2 BarColor Property