1,首先下载DotNetBarcode.dll文件
下载地址:
http://dl.downyi.com/dotnetbarcode_dll.rar
2,调用方式
string path = @"D:QRcode.png"; //保存路径
DotNetBarcode BarCode = new DotNetBarcode();
BarCode.Type = DotNetBarcode.Types.QRCode; // 生成的规则有:code39/jan13/jan8/QRCode
BarCode.QRSetTextType = DotNetBarcode.QRTextTypes.Binary;
BarCode.SaveFileType = DotNetBarcode.SaveFileTypes.Png;
BarCode.Save("0006267753", path, 126, 126);