如何在C#中创建调酒文件(.btw) [英] how to create bartender file(.btw) in C#

查看:227
本文介绍了如何在C#中创建调酒文件(.btw)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

我们可以在调酒师中创建空条形码以在应用程序中使用它,我们加载文件,获取条形码然后更改其值:

Dears,
we can create empty barcode in bartender to use it in the application, we load the file, get the barcode then change its value:

private BarTender.Application GetApplication() {
if (barTenderApplication == null) {
barTenderApplication = new BarTender.Application();
    }
return barTenderApplication;
}
 
Format barTenderFormat = GetApplication().Formats.Open(fileName);
barTenderFormat.SetNamedSubStringValue("gh", txtFName.barTenderFormat.SetNamedSubStringValue("os", txtX.barTenderFormat.SetNamedSubStringValue("yo", txtY.Text);
string imageName = @"C:\Bartender 03.10.13\" + DateTime.Now.Millisecond + ".jpg";
barTenderFormat.ExportToFile(imageName, "jpg", BtColors.btColors16, BtResolution.btResolutionPrinter, BtSaveOptions.btSaveChanges);
barTenderFormat.Close(BtSaveOptions.btSaveChanges);
Bitmap bMap = new Bitmap(new Bitmap(imageName), pictureBox.Width, pictureBox.Height);
pictureBox.Image = bMap;



但问题是:如何从头开始创建整个文件,并在其中创建对象(条形码,文本和这个文件中的其他对象)并设置它的值。

如果我们从调酒师创建文件,那么我们如何生成条形码,对象并设置其值


but the question is: how to create the whole file from scratch,and create the objects inside it (barcode, text and other objects in this file) and set its value.
And if we create the file from bartender so how can we generate barcode, objects and set its value

推荐答案

查看此链接



http://www.bartenderbarcodesoftware.com/label-software/whitepapers/controlling-barcode-label-software-using-c -sharp-and-vb.net%28english%29.pdf [ ^ ]


这篇关于如何在C#中创建调酒文件(.btw)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆