|
88480条码网--浏览留言
姓名: 林生
来自: 219.134.*.*
邮件: 邮件
主页: 主页
|
[NO.788]
发表于:2009-11-30 9:44:09
|
barcode打印接上个贴子.
下面的那段代码是不行的.少打了一个字.不好意思.麻烦帮
忙.
int a = 10;int b = a + 20;int c = b + 20;int d = c +
20;int e3 = d + 10;
B_CreatePrn(1, "a20");
B_Select_Option(1);
B_Set_Darkness(10);
B_Set_Speed(4);
B_Set_Labwidth(720);
B_Set_Labgap(480, 24);
B_Set_Backfeed('B');
B_Prn_Text_TrueType(90, 10, 70, "Arial", 1, 700, 0, 0,
0, "A0", "Title(RHGA)");
B_Draw_Line('E', 10, 100, 460, 2);
B_Prn_Text_TrueType(30, 105, 50, "Arial", 1, 600, 0,
0, 0, "A1", string.Format("PPNN: {0}", "PPnn"));
B_Draw_Line('E', 20, 155, 440, 2);
B_Prn_Text_TrueType(30, 160, 50, "Arial", 1, 600, 0,
0, 0, "A2", string.Format("数量: {0}", "100"));
B_Draw_Line('E', 20, 210, 440, 2);
B_Prn_Text_TrueType(30, 215, 50, "Arial", 1, 600, 0,
0, 0, "A3", string.Format("产品名称: {0}", "PN"));
B_Draw_Line('E', 20, 265, 440, 2);
B_Prn_Text_TrueType(30, 270, 50, "Arial", 1, 600, 0,
0, 0, "A4", string.Format("回收类型:
{0}", "ReBack"));
B_Draw_Line('E', 20, 320, 440, 2);
B_Prn_Text_TrueType(30, 325, 50, "Arial", 1, 600, 0,
0, 0, "A5", string.Format("箱号: {0}", "20091125-
1001"));
B_Draw_Line('E', 20, 375, 440, 2);
B_Prn_Text_TrueType(30, 380, 50, "Arial", 1, 600, 0,
0, 0, "A6", string.Format("备注:
{0}", "_MyBox.Pen"));
B_Print_Out(1);
B_ClosePrn();
显然只有打印的内容不相同,和最一行的位置不同而已,其它
设置都一样.但是就是不能吐出整张纸来.请帮忙解决.
邮件
主页
不告诉你
219.134.*.*
回复
删除 |
|
姓名: 林生
来自: 219.134.*.*
邮件: 邮件
主页: 主页
|
[NO.787]
发表于:2009-11-30 9:40:21
|
barcode打印接上个贴子.
您好:我现在在打印一张小卡片(barcode),纸张高度为A4纸
宽的1/3即:70mm,70*8 = 560dot .以前我们有个程序:
下面程序是OK的:
int a = 10;int b = a + 20;int c = b + 20;int d = c +
20;int e3 = d + 10;
B_CreatePrn(1, "a20");
B_Select_Option(1);
B_Set_Darkness(10);
B_Set_Speed(4);
B_Set_Labwidth(720);
B_Set_Labgap(480, 24);
B_Set_Backfeed('F');
B_Prn_Text_TrueType(270, 10, 70, "Arial", 1, 700, 0,
0, 0, "A0", "Title");
B_Prn_Text_TrueType(30, 95 + a, 50, "Arial", 1, 600,
0, 0, 0, "A1", "PPName");
B_Draw_Line('E', 165, 130 + a, 160, 2);
B_Prn_Text_TrueType(160, 80 + a, 60, "Arial", 1, 600,
0, 0, 0, "A2", "0A73136");
B_Prn_Text_TrueType(380, 100 + a, 30, "Arial", 1, 600,
0, 0, 0, "A3", "EEnumber");
B_Draw_Line('E', 500, 130 + a, 160, 2);
B_Prn_Text_TrueType(520, 95 + a, 30, "Arial", 1, 600,
0, 0, 0, "A4", "DA3175");
B_Prn_Text_TrueType(30, 137 + b, 30, "Arial", 1, 600,
0, 0, 0, "A5", "Sision");
B_Prn_Text_TrueType(30, 160 + b, 30, "Arial", 1, 600,
0, 0, 0, "A51", "SC");
B_Draw_Line('E', 190, 190 + b, 160, 2);
B_Prn_Text_TrueType(210, 155 + b, 30, "Arial", 1, 600,
0, 0, 0, "A6", "NHK");
B_Prn_Text_TrueType(380, 140 + b, 30, "Arial", 1, 600,
0, 0, 0, "A7", "DET");
B_Prn_Text_TrueType(380, 162 + b, 30, "Arial", 1, 600,
0, 0, 0, "A71", "G");
B_Prn_Text_TrueType(520, 162 + b, 24, "Arial", 1, 600,
0, 0, 0, "A15", "B2");
B_Draw_Line('E', 500, 190 + b, 160, 2);
B_Prn_Text_TrueType(30, 182 + c, 30, "Arial", 1, 600,
0, 0, 0, "A8", "S");
B_Prn_Text_TrueType(30, 205 + c, 30, "Arial", 1, 600,
0, 0, 0, "A81", "L");
B_Prn_Text_TrueType(130, 190 + c, 24, "Arial", 1, 500,
0, 0, 0, "A9", "H");
B_Draw_Line('E', 190, 235 + c, 160, 2);
B_Prn_Text_TrueType(30, 220 + d, 50, "Arial", 1, 600,
0, 0, 0, "A10", "Q");
B_Draw_Line('E', 190, 280 + d, 160, 2);
B_Prn_Text_TrueType(190, 210 + d, 70, "Arial", 1, 600,
0, 0, 0, "A11", "4650");
B_Prn_Text_TrueType(380, 250 + d, 30, "Arial", 1, 600,
0, 0, 0, "A12", "PB");
B_Draw_Line('E', 500, 280 + d, 160, 2);
B_Prn_Text_TrueType(520, 245 + d, 30, "Arial", 1, 600,
0, 0, 0, "A13", "5009213");
B_Prn_Barcode(115, 300 + e3, 0, "1", 3, 2,
60, 'B', "20091126-1035");
B_Prn_Text_TrueType(240, 365 + e3, 40, "Arial", 1,
600, 0, 0, 0, "A14", "20091126-1035");
B_Prn_Text_TrueType(330, 410 + d, 30, "Arial", 1, 600,
0, 0, 0, "A16", "Country Of Origin: China");
B_Print_Out(1);
B_ClosePrn();
下面的程序是行的:
int a = 10;int b = a + 20;int c = b + 20;int d = c +
20;int e3 = d + 10;
B_CreatePrn(1, "a20");
B_Select_Option(1);
B_Set_Darkness(10);
B_Set_Speed(4);
B_Set_Labwidth(720);
B_Set_Labgap(480, 24);
B_Set_Backfeed('B');
B_Prn_Text_TrueType(90, 10, 70, "Arial", 1, 700, 0, 0,
0, "A0", "Title(RHGA)");
B_Draw_Line('E', 10, 100, 460, 2);
B_Prn_Text_TrueType(30, 105, 50, "Arial", 1, 600, 0,
0, 0, "A1", string.Format("PPNN: {0}", "PPnn"));
B_Draw_Line('E', 20, 155, 440, 2);
B_Prn_Text_TrueType(30, 160, 50, "Arial", 1, 600, 0,
0, 0, "A2", string.Format("数量: {0}", "100"));
B_Draw_Line('E', 20, 210, 440, 2);
B_Prn_Text_TrueType(30, 215, 50, "Arial", 1, 600, 0,
0, 0, "A3", string.Format("产品名称: {0}", "PN"));
B_Draw_Line('E', 20, 265, 440, 2);
B_Prn_Text_TrueType(30, 270, 50, "Arial", 1, 600, 0,
0, 0, "A4", string.Format("回收类型:
{0}", "ReBack"));
B_Draw_Line('E', 20, 320, 440, 2);
B_Prn_Text_TrueType(30, 325, 50, "Arial", 1, 600, 0,
0, 0, "A5", string.Format("箱号: {0}", "20091125-
1001"));
B_Draw_Line('E', 20, 375, 440, 2);
B_Prn_Text_TrueType(30, 380, 50, "Arial", 1, 600, 0,
0, 0, "A6", string.Format("备注:
{0}", "_MyBox.Pen"));
B_Print_Out(1);
B_ClosePrn();
邮件
主页
278599116
219.134.*.*
回复
删除 |
|
姓名: 林生
来自: 64.254.*.*
邮件: 邮件
主页: 主页
|
[NO.786]
发表于:2009-11-27 10:51:17
|
您好:我现在在打印一张小卡片(barcode),纸张高度为A4纸
宽的1/3即:70mm,70*8 = 560dot .以前我们有个程序:
B_Set_Labwidth(720);
B_Set_Labgap(480, 24);
B_Draw_Line( 69, 2, 40, 835, 2);
B_Set_Backfeed('F');
中间打印几行....下面是最后一行打印
B_Prn_Text_TrueType(330, 480, 30, "Arial", 1, 600, 0,
0, 0, "A16", "**********");
B_Print_Out(1);
B_ClosePrn();
能够打印正常,完整吐出一张纸.
我现在的打印内容有变化.
我改的程序如下:
bbp.BSetLabwidth(720);
B_Set_Labgap(480, 24);
B_Draw_Line( 69, 2, 40, 835, 2);
B_Set_Backfeed('F');
中间打印几行....下面是最后一行打印
B_Prn_Text_TrueType(30, 380, 50, "Arial", 1, 600, 0,
0, 0, "A6", string.Format("备注: {0}", "内容"));
显然只有打印的内容不相同,和最一行的位置不同而已,其它
设置都一样.但是就是不能吐出整张纸来.请帮忙解决.
专家解答:需要发完整程序来看看,可联系技术人员 TEL:0755-
83768534
邮件
主页
不告诉你
64.254.*.*
回复
删除 |
|
©
ShenZhen SvCung Technologies Co., Ltd. , all rights reserved |
对本站如有任何疑问或建议,请联系 webmaster@88480.com |
| | |