Procedure for creating a QR code using barcode Xpress

Source: Internet
Author: User

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();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.