![Barcode For FMX | Embarcadero RAD Studio Delphi C++Builder Blogs](https://i0.wp.com/blogs.embarcadero.com/wp-content/uploads/2020/08/Barcode-For-FMX.jpg?resize=1024%2C694&ssl=1)
Overview
Winsoft Barcode for Firemonkey is the third party component to give barcode support on FMX platform.
Winsoft Barcode for Firemonkey is based on Zint, an open-source barcode encoding library.
Versions Supported: Delphi/C++ Builder XE2 – XE10.4.
Platforms: Windows, MacOS, iOS and Android;
Component encodes data into any of the following:
Australia Post barcode, Aztec Code, Aztec Runes, Channel Code, Codabar, Codablock-F, Code 11, Code 128, Code 16K, Code 2 of 5 (Including IATA, Datalogic, ITF14, Deutsche Post Leitcode and Identcode), Code 32 (Italian Pharmacode), Code 39, Code 39+, Code 49, Code 93, Code One, Data Matrix (including DMRE), DotCode, Dutch Post KIX, EAN, Grid Matrix, GS-1 DataBar (including stacked and composite symbols), Han Xin, HIBC, Japan Post, Korea Post, LOGMARS, MaxiCode, MSI, PDF417 and Micro PDF417, Pharmacode, POSTNET, PLANET, QR Code and Micro QR, Royal Mail 4-state (RM4SCC) and Mailmark, Telepen, Ultracode, UPC-A, UPC-E, UPNQR and USPS Intelligent Mail.
Installation
Why we should use Winsoft Barcode because without it we have to wrapped Zint library API into pascal format and also need to give support for multiple platform.That required significant amount of effort. Winsoft Barcode has developed this components in such way where developer can generate and customize barcode by using few lines of code.That results in saving time and effort of the developer.
Here is sample code to generate QR Code.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
uses FBarcode; ... begin //Assign Barcode Type FBarcode1.Symbology := TSymbology.syQRCode; //Assign Barcode Value FBarcode1.InputText := 'QR-12345'; //Generate Barcode and Display into Image. ImageBarcode.Bitmap.Assign(FBarcode1.Bitmap); end; |
User can customize the output of barcode here is the sample code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
begin //Set foreground color of barcode Barcode.ForeColor := TAlphaColorRec.Black; //Set background color of barcode Barcode.BackColor := TAlphaColorRec.White; //Set Border width. Barcode.BorderWidth := 1; //Set white space in the barcode. Barcode.WhiteSpaceWidth := 1; // Display Text of Barcode. Barcode.ShowText := True; // Set Barcode Text size to small; Barcode.OutputOptions := Barcode.OutputOptions + [opSmallText]; // Set Barcode Text style to Bold; Barcode.OutputOptions := Barcode.OutputOptions + [opBoldText]; //Draw box around Barcode Barcode.OutputOptions + [opBox]; //Set Barcode Scale Barcode.Scale := 1; //Set Barcode dot size. Barcode.DotSize := 1; //Set Barcode angle; Barcode.Rotation := 0; end; |
Conclusion: It required a few lines of code to generate barcode using this component.
WINSOFT save our time in nailing the Zint library APIs and boost our productivity.
Check out the full version of WINSOFT Barcode for FireMonkey for Delphi and C++Builder
Like what you see? You can get Direct Office and over 100 other fantastic WinSoft components with our Enterprise Component Pack. For a limited time, when you purchase RAD Studio Enterprise or Architect Edition at special Upgrade Pricing, you will also get this package of third-party software worth over $13,000, including the full WinSoft Component Library, at NO EXTRA COST! Step up to RAD Studio 10.4 today!
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition