本文具体描述了使用Barcode Xpress创建二维码的步骤。
1 实例化你想创建条码的writer类。
2 设置您想创建的值。
Property | Description |
This property gets and sets the value of the barcode to be created. | |
This property gets and sets the current barcode value as an array of bytes used only if non-ASCII text values are needed. |
3 从实例化的writer类中调用创建方法(创建一个hDib)或着CreateBitmap方法(创建一个System.Drawing.Bitmap系统图位图)。这些方法将返回一个预期的条形码形象。
Method | Description |
This method is the main method for creating barcodes. | |
This method creates bitmap barcodes. |
c#——使用Accusoft.BarcodeXpress.Net生成PDF417条形码的基本步骤
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//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# -使用Accusoft.BarcodeXpress.Net编写DataMatrix Barcodes条码的基本步骤
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//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();
|