本文具體描述了使用Barcode Xpress建立二維碼的步驟。
1 執行個體化你想建立條碼的writer類。
2 設定您想建立的值。
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 從執行個體化的writer類中調用建立方法(建立一個hDib)或著CreateBitmap方法(建立一個System.Drawing.Bitmap系統圖位元影像)。這些方法將返回一個預期的條碼形象。
Method |
Description |
Create |
This method is the main method for creating barcodes. |
CreateBitmap |
This method creates bitmap barcodes. |
c#——使用Accusoft.BarcodeXpress.Net產生PDF417條碼的基本步驟
| 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# -使用Accusoft.BarcodeXpress.Net編寫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(); |