Barcode Xpress如何快速创建PDF417二维条码

作者:控件中国网   出处:控件中国网   2015-08-18 09:19:57   阅读:7

Barcode Xpress不仅可以创建一维和二维条码,还可以精确识别一维和二维条码,是目前市场上最优秀的条码生成与识别控件,支持多种开发语言和开发平台,为开发人员提供了丰富的API和事例,下面的代码主要是介绍如何快速创建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();

Copyright© 2006-2015 ComponentCN.com all rights reserved.重庆磐岩科技有限公司(控件中国网) 版权所有 渝ICP备12000264号 法律顾问:元炳律师事务所
客服软件
live chat