我需要使用 ac# windows 窗体在 Crystal Report 中打印 Barcode128。输入字符串是这样的:
123456-abcdef-abc
我使用barcode.dll 构建格式化的128barcode:
string encodedText = BarCode.BarcodeConverter128.StringToBarcode("123456-abcdef-abc");
string path = @"D:\Projects\mypath\myreport.rpt";
ReportDocument cryRpt = new ReportDocument();
cryRpt.Load(path);
cryRpt.SetParameterValue("@inputString", encodedText);
crystalReportViewer1.ReportSource = cryRpt;
crystalReportViewer1.Refresh();
在 crystalReportViewer1 中,文本框字体为“Code 128”
它显示条形码,但无法从任何条形码阅读器读取。怎么了?
这是生成的条形码:
图片更新了!同样的问题。
提前感谢您的帮助。