当前位置:网站首页>C # realizes crystal report binding data and printing 4-bar code

C # realizes crystal report binding data and printing 4-bar code

2022-07-06 22:05:00 coder i++

Read the last few articles With your own debugging, you can print it
Roughly record the process
1、 stay dataset Add columns code type System.Byte[] , And pull this column to a certain position of the crystal report
2、 install BarcodeX And add barcodex.ocx quote
3、 newly build from And pull one barcode To come over
4、 Get data and assign values
barcodex.Caption = “123456”;
5、 Turn the picture information into bytes Stream and assign value
ImageToBytes
datatset.rows[i].column[“code”] = imgbytes;
6、 Assign value to crystal report corresponding dataset Information and print

 Insert picture description here

原网站

版权声明
本文为[coder i++]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207061356515888.html