This document describes how to use barcode Xpress to create a QR code.
1. instantiate the writer class you want to create a bar code.
2. Set the value you want to create.
Property |
Description |
Barcodevalue |
This property gets and sets the value of the barcode to be created. |
Barcodedata |
This property gets and sets the current barcode value as an array of bytes used only if non-ASCII text values are needed. |
3. Call the create method (create an hdib) or createbitmap method from the instantiated writer class (Create a system. Drawing. Bitmap system map Bitmap ). These methods return an expected bar code image.
Method |
Description |
Create |
This method is the main method for creating barcodes. |
Createbitmap |
This method creates bitmap barcodes. |
C # -- use accusoft. barcodexpress. Net to generate the bar code
1234567891011121314151617 |
//create and unlock the BarcodeXpress component
BarcodeXpress bcx =
new BarcodeXpress();
// The SetSolutionName and SetSolutionKey methods must be called to distribute the runtime.
bcx.Licensing.SetSolutionName(“YourSolutionName”);
bcx.Licensing.SetSolutionKey(12345,12345,12345,12345);
// The SetOEMLicenseKey method is required if Manually Reported Runtime Licensing is used.
bcx.Licensing.SetOEMLicenseKey(“1.0.AStringForOEMLicensing”);
//Create the writer PDF417 class
WriterPDF417 pdf417 =
new WriterPDF417(bcx);
// Set the text value
pdf417.BarcodeValue =
"PDF417 Value" ;
//call Create and get resulting image
imageXView1.Image = Accusoft.ImagXpressSdk.ImageX.FromHdib(imagXpress1, pdf417.Create());
// dispose of the writer PDF417 and barcode component
pdf417.Dispose();
bcx.Dispose(); |
C #-use accusoft. barcodexpress. Net to compile the datamatrix barcodes
12345678910111213141516 |
//create and unlock the BarcodeXpress component
BarcodeXpress bcx =
new BarcodeXpress();
// The SetSolutionName and SetSolutionKey methods must be called to distribute the runtime.
bcx.Licensing.SetSolutionName(“YourSolutionName”);
bcx.Licensing.SetSolutionKey(12345,12345,12345,12345);
// The SetOEMLicenseKey method is required if Manually Reported Runtime Licensing is used.
bcx.Licensing.SetOEMLicenseKey(“1.0.AStringForOEMLicensing”);
//Create the writer DataMatrix class
WriterDataMatrix dataMatrix =
new WriterDataMatrix(bcx);
// Set the text value
dataMatrix.BarcodeValue =
"DataMatrix Value" ;
//call Create and get resulting image
imageXView1.Image = Accusoft.ImagXpressSdk.ImageX.FromHdib(imagXpress1, dataMatrix.Create());
// dispose of the writer DataMatrix and barcode component
dataMatrix.Dispose();
bcx.Dispose(); |