是一款强大的条码控件,不仅可以精准快速的读取常见的1D和2D条形码,并可以在页面任意的地方以及任意的方向检测条码,同时Barcode Xpress还可以创建大多数的1D和2D条形码,本文来看看Barcode Xpress如何创建2D条形码。
创建PDF417条形码
-
//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
-
if (imageXView1.Image != null)
-
imageXView.Image.Dispose();
-
imageXView1.Image = Accusoft.ImagXpressSdk.ImageX.FromHdib(imagXpress1, pdf417.Create(), true);
-
// dispose of the writer PDF417 and barcode component
-
pdf417.Dispose();
-
bcx.Dispose();
创建DataMatrix条形码
>>>
QR Code条形码
>>>