The pqScan Barcode Creator is a .NET component to generate common one-dimensional and two-dimensional barcodes. It allows barcode images to be created within the developer's own .NET Windows Form application. pqScan .NET Barcode Creator can work with Visual Studio 2005/2008/2010/2012/2013 and requires the .NET framework 2.0 (or above) to be installed on client computer to use this component.
Supported barcode types include QR Code, Data Matrix, Aztec Code, PDF 417, Code 128, Code 39, EAN-13, EAN-8, UPC-A.
Encoding barcode use .NET Barcode Creator Windows Forms Control
To use the pqScan Barcode Creator WinForms control, follow these steps:
- Download and unzip the Trial package to development computer.
- Add Barcode Creator WinForms Control to the Visual studio Toolbox.
- In a WinForms application, open a Form in design mode.
- Select View - Toolbox to display the Toolbox
- Right click on the Components pane and select Choose Items...
- In the dialog box Choose Toolbox Items, ensure the .NET Framework Components tab is displayed.
- Push the Browse button and navigate to the "PQScan.BarcodeCreator.dll" file.
- Ensure the checkbox of pqScan Barcode Creator WinForms Control "BarcodeWinControl" is checked.
- With a project's form open in design mode, drag the Barcode Creator component item from toolbox onto the form.
One instance of Barcode Creator Control in WinForms can render one barcode image. And the control appears on the form using default settings, developers can customize these settings to encode specific barcode.
Encoding barcode use .NET Barcode Creator component API
To generate barcode image using pqScan Barcode Creator in .NET WinForms class, follow these steps:
- Download and unzip the Trial package to development computer.
- Add "PQScan.BarcodeCreator.dll" to your .NET WinForms project reference.(The dll will be copied automatically to the project bin folder).
- Copy and paste the C# code below to your .NET WinForms class:
using System; using System.Windows.Forms; using PQScan.BarcodeCreator; namespace BarcodeGenerateInWinforms { publicpartialclassForm1 : Form { public Form1() { InitializeComponent(); Barcode barcode = newBarcode(); barcode.Data = "www.pqscan.com"; barcode.BarType = BarCodeType.QRCode; barcode.Width = 200; barcode.Height = 200; barcode.CreateBarcode("qrcode-csharp.bmp"); } } }