Chinaunix首页 | 论坛 | 博客
  • 博客访问: 70374
  • 博文数量: 40
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 368
  • 用 户 组: 普通用户
  • 注册时间: 2013-03-12 16:17
文章分类

全部博文(40)

文章存档

2013年(40)

我的朋友

分类: C#/.net

2013-09-10 09:47:50

条码控件Barcode Xpress使用教程:创建2D条形码

  是一款强大的条码控件,不仅可以精准快速的读取常见的1D和2D条形码,并可以在页面任意的地方以及任意的方向检测条码,同时Barcode Xpress还可以创建大多数的1D和2D条形码,本文来看看Barcode Xpress如何创建2D条形码。

创建PDF417条形码


 

点击(此处)折叠或打开

  1. //create and unlock the BarcodeXpress component
  2. BarcodeXpress bcx = new BarcodeXpress();
  3. // The SetSolutionName and SetSolutionKey methods must be called to distribute the runtime.
  4. bcx.Licensing.SetSolutionName("YourSolutionName");
  5. bcx.Licensing.SetSolutionKey(12345,12345,12345,12345);
  6. // The SetOEMLicenseKey method is required if Manually Reported Runtime Licensing is used.
  7. bcx.Licensing.SetOEMLicenseKey("1.0.AStringForOEMLicensing");
  8. //Create the writer PDF417 class
  9. WriterPDF417 pdf417 = new WriterPDF417(bcx);
  10. // Set the text value
  11. pdf417.BarcodeValue = "PDF417 Value";
  12. //call Create and get resulting image
  13. if (imageXView1.Image != null)
  14.    imageXView.Image.Dispose();
  15. imageXView1.Image = Accusoft.ImagXpressSdk.ImageX.FromHdib(imagXpress1, pdf417.Create(), true);
  16. // dispose of the writer PDF417 and barcode component
  17. pdf417.Dispose();
  18. bcx.Dispose();

创建DataMatrix条形码

>>>

QR Code条形码

>>>

阅读(377) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~