如何将数据从C#传递给调酒师2016
我阅读了Bartender SDK,并编写了以下代码来测试标签模板如何将数据从C#传递给调酒师2016,c#,bartender,C#,Bartender,我阅读了Bartender SDK,并编写了以下代码来测试标签模板 var lb = @"C:\Users\Administrator\Desktop\线标.btw"; using (Engine engine = new Engine(true)) { LabelFormatDocument btformate = engine.Documents.Open(lb); btformate.SubStrings["v
var lb = @"C:\Users\Administrator\Desktop\线标.btw";
using (Engine engine = new Engine(true))
{
LabelFormatDocument btformate = engine.Documents.Open(lb);
btformate.SubStrings["version"].Value = txtVersion.Text;
btformate.SubStrings["pn"].Value = txtPN.Text;
btformate.SubStrings["sn"].Value = txtsn.Text;
btformate.SubStrings["week"].Value = txtWeek.Text;
btformate.PrinterCodeTemplate.Performance.AllowSerialization = false;
btformate.ExportImageToClipboard(Seagull.BarTender.Print.ColorDepth.ColorDepth256, new Resolution(200));
engine.Stop();
}
在标签模板中,我使用打印机代码模板字段将数据从c#传递到调酒师引擎
例如,我设置PN=“04130032”,并考虑输出将是正确的字符串“04130032”,不幸的是,调酒师显示另一种方式“4130032”。正如你们所看到的,它被认为是数字,我真的希望它是字符串
调酒师模板图片 模板输出图片 如何调整标签模板并找到正确的方法非常感谢。在我的调酒师软件中尝试重新创建您的场景后,我提出了一些您可以尝试的东西:
Barcode-Human-Readable
中是否有将数据转换为数字的VBScript
有人能帮忙吗?T^T