前往Shuct.Net首页

Shudepb PB反编译专家长时间以来,为业内同类软件事实上的唯一选择.细节,彰显专业.态度,决定品质.

关于PowerBuilder的搜索

常用条码打印大全(PB版) - 菜鳥也瘋狂的日志 - 网易博客 网易 新闻 微博 邮箱 相册 阅读 有道 摄影 爱拍 优惠券 云笔记 闪电邮 手机邮 印像派 网易识字 更多 博客 手机博客 博客搬家 博客VIP服务 LiveWriter写博 word写博 邮件写博 短信写博 群博客 博客油菜地 博客话题 博客热点 博客圈子 找朋友 发现 小组 风格 网易真人搭配社区iStyle 把最美的记录工具,装进你的口袋 >> 把最美的记录工具,装进你的口袋 >> 把最美的记录工具,装进你的口袋 >> 创建博客 登录 加关注 显示下一条 | 关闭 温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》 | 关闭 菜鸟也疯狂 不要因为结束而哭泣,微笑吧,为你的曾经拥有. 导航 首页 日志 相册 音乐 收藏 博友 关于我 日志 常用条码打印大全(PB版) 2008-04-10 14:44:58| 分类: PB編程 | 标签: |举报 |字号大中小 订阅 特点描述:主要针对PowerBuilder程序开发者,当然应用程序也可直接供给最终用户用来打印价签、条码证件之类的东东;本程序无需安装条码字库,无需控件,无需条码打印机,功能已封装为对象,接口简单,提供label风格的数据窗口预览(即可设定每页纵向及横向标签的数量、排版的顺序、纵向及横向间距,标签的宽度及高度等),可用激光打印机、喷墨打印机或者针式打印机打印,可进行完整的条码打印或仅打印条形码,可设定条码的线宽。 特点描述:主要针对PowerBuilder程序开发者,当然应用程序也可直接供给最终用户用来打印价签、条码证件之类的东东;本程序无需安装条码字库,无需控件,无需条码打印机,功能已封装为对象,接口简单,提供label风格的数据窗口预览(即可设定每页纵向及横向标签的数量、排版的顺序、纵向及横向间距,标签的宽度及高度等),可用激光打印机、喷墨打印机或者针式打印机打印,可进行完整的条码打印或仅打印条形码,可设定条码的线宽。目前支持的条码种类有以下几种:EAN-13,EAN-8, JAN,用于流通商品UPC-A,UPC-E, 用于美国流通商品EAN Ext 2-Digit Supplement,EAN Ext 5-Digit Supplement, UPC Ext 2-Digit Supplement,UPC Ext 5-Digit Supplement,用于报纸、书、杂志、期刊 Code39,Code39 Full ASCII Mode,起初用于美国政府和国防部,后被广泛应用。Code93,Code93 Full ASCII Mode,压缩过的Code39码,被加拿大采用,后被广泛应用。 standard 2 of 5, Industrial 2 of 5,用于飞机票等interleaved 2 of 5,用于仓库及工业应用Code128,使用广泛Bookland,ISSN,用于图书、杂志、期刊等MSI(Plessey Code),用于零售货架标记Code11,用于电讯设备标记Codabar(aka Ames Code/USD-4/NW-7/2 of 7 Code),用于图书馆、血库等PostNet(3 of 5 ) 始用于美国邮局,来更快的排序邮件和邮递路线使用注意事项:问:打印出的条码扫描不出来,或者扫描出的信息与设定的不符。答:首先,检查您的条码扫描仪是否支持打印出的条码(如Code128码),其次,观察条码是否清晰,是否加有背景的杂色,条码为黑色,底色为白色时最易辨认,当底色为绿色或者红色时很难辨认,底色为蓝色时不容易辨认。问:你们的例子上是使用的label,本条码是否可用于我们自己的单据(比如需要在freeform的左上角打印条码)答:当然可以,我们的例子为了做全面的的演示,所以是采用的label风格,在一个页面上就打印了全部的条码。如果需要在某一个单据上打印条码,系统是一样支持的!问:本软件是否可用于条码打印机?当然可以,但需要设定自定义纸张,调试稍微有点麻烦。问:我在DEMO中自己添加了一些数据,为什么显示不出来?答:一种情况是条码字符长度和字符与选择的条码类型不合适,如:EAN13码要求必须为13为数字,不能含字母,并且最后一位是校验位等,详细请看以下章节,另一种情况是Demo版有限制,每种条码只能预览约4个自己设定的条码。如果需要相同类型条码的测试,需退出并重新运行程序,或者转换为其他类型的条码进行测试关于条码支持的字符及长度限制1.Code128,Extend Code93,Extend Code39,支持全全ASCII码,Code128有A、B、C三种模式,每种模式支持一部分,大致是这样的A模式支持ASCII值为0-95的字符,B模式支持的范围为ASCII值为32-127的字符,C模式支持纯数字字符;长度理论上没有限制。2.Code39,Code93支持的范围为’0’到’9’数字字符及大写字母和‘/’,‘+’,‘%’,‘$’,‘-’,‘.’及空格,长度理论上没有限制。3. EAN8,EAN13,EAN Ext,UPCA,UPCE,UPC Ext支持的范围为’0’到’9’数字字符,EAN8长度为8,EAN13长度为13,EAN8 Ext长度为10或者13,EAN13 Ext长度为15或者18,UPCA长度为12,UPCE长度为8,UPCE Ext长度为10或者13,UPCA Ext长度为14或者17。4.Bookland,ISSN,ISSN可能支持数字以外的其它字符,本中间件支持请参考“关于Bookland(ISBN)和ISSN”部分的说明5.Code11 支持的范围为’0’到’9’数字字符及‘-’,长度理论上没有限制。6.Codabar支持的范围为’0’到’9’数字字符及‘A’,‘B’,‘C’,‘D’,‘-’,‘.’,‘/’,‘:’,‘+’,‘$’,开始和结尾字符必须是‘A’,‘B’,‘C’,‘D’中的字符,长度理论上没有限制。7.MSI,Code 2of5 支持的范围为’0’到’9’数字字符,长度理论上没有限制。8. PostNet支持的范围为’0’到’9’数字字符,长度为5位,9位,或者11位,本开发包支持带有非数字的格式,如12345-8012,使用更方便。 英文版说明:Numeric-only barcodes EAN-13: European Article Numbering international retail product code EAN-8: Compressed version of EAN code for use on small products UPC-A: Universal product code seen on almost all retail products in the USA and Canada UPC-E: Compressed version of UPC code for use on small products Code 11: Used primarily for labeling telecommunications equipment Interleaved 2 of 5: Compact numeric code, widely used in industry, air cargo, other applications Industrial 2 of 5: Older code not in common use Standard 2 of 5: Older code not in common use Codabar: Older code often used in library systems, sometimes in blood banks Plessey: Older code commonly used for retail shelf marking MSI: Variation of the Plessey code commonly used in USA PostNet: Used by U.S. Postal Service for automated mail sorting Alphanumeric barcodes Code 39: General-purpose code in very wide use world-wide Code 93: Compact code similar to Code 39 Code 128: Very capable code, excellent density, high reliability; in very wide use world-wide LOGMARS: Same as Code 39, this is the U.S. Government specification Industry Standards for Barcodes and Labels Bookland EAN encodes ISBN numbers, used internationally to mark books ISSN and the SISAC Barcode: International Standard Serial Numbering OPC: Optical Industry Association barcode for marking retail optical products UCC/EAN-128: Widely used data formatting model for Code 128 UPC Shipping Container Symbol: ITF-14 关于校验位大部分条码都有校验位,大致可分为三种情况,如下:1. 校验位可有可无,如Code39码,本中间件中提供的是无校验位模式,在生成条码时使用者无需计算校验位,例如:“123ABC”在生成时可直接作为参数传入;2. 校验位必须有,需用户计算附加在原有数据上,在生成条码时必须传入带有校验位的字符串,如:EAN13码是由12位数字加1位校验数字组成13位,在生成时需传入13位带校验的字符串,常见的商品码大部分为EAN13码,已含有校验位,如果自己定义EAN13码,则需以20开头加10位数字,然后计算出它的校验位,形成13位字符串;3. 有校验位但无需用户自己计算,在生成条码时系统自动计算,如:Code128码,下面是本中间件支持的条码相关校验位的说明:Code11,Code128,Code93,PostNet:校验位无需用户自己计算,Code93包括两个校验位,Code11长度小于10时用1位,大于等于10时用两位校验位。Code39,Code 2of 5 :校验位可有可无Codabar:无校验位MSI:需用户自己计算,1位或者两位校验位。Bookland,EAN8,EAN13,EAN Ext,UPCA,UPC Ext,ISSN,为国际条码时,本身已含有,不用再计算,除非自定义时需要计算。UPCE:是通过UPCA转换而来的,本身无需计算条码。英文版说明:BarcodeCharSetLengthChecksumApplicationsEAN-13Numbers Only12 data digits and 1 check digit; 2 or 5 digit supplement optionalRequiredRetail product marking world-wideEAN-8Numbers Only RequiredRetail product marking world-wide; compressed code for products with limited label spaceBooklandNumbers Only RequiredSpecial use of the EAN-13 symbol to encode ISBN number on booksUPC-ANumbers Only11 data digits and 1 check digit; 2 or 5 digit supplemental optionalRequiredRetail product marking in USA and CanadaUPC-ENumbers Only RequiredRetail product in USA and Canada; compressed code for products with limited label spaceCode 11Numbers OnlyVariable1 Required; 2 Recommended Interleaved 2 of 5Numbers OnlyVariableOptionalVery compact encodes digits in pairs so total length must be even number of digitsIndustrial 2 of 5Standard 2 of 5Numbers OnlyVariableOptionalOld typeCodabar (aka Ames Code/USD-4/NW-7/2 of 7 Code)Numbers: 0-9; Symbols: - : . $ / + Start/Stop Characters: A, B, C, D,VariableNone definedoften used in libraries and blood banksMSI(Plessey)Numbers OnlyVariableRequiredGrocery store shelf tagsPostnetNumbers Only5, 9, or 11 digits and 1 check digitRequiredUSA postal code (ZIP code)Code 39(LOGMARS)Uppercase letters A-Z;Numbers 0-9;Space - . $ / + %VariableOptionalIn very wide use for many types of applicationsCode 93Uppercase letters A-Z;Numbers 0-9;Space - . $ / + %VariableRequiredA more compact cousin of Code 39, not as widely in use Extended Code 39 Linear All ASCII characters and control codes Variable Optional Uses pairs of characters to encode non-standard symbols; wasteful of spaceCode 128All ASCII characters and control codesVariableRequiredWidely used; excellent for many applications 评论这张 转发至微博 转发至微博 阅读(3498)| 评论(6) | 分享到: 喜欢 推荐 0人 | 转载 历史上的今天 最近读者 热度 评论 this.p={ m:2, b:2, id:'fks_084071085082082070082095083095085081084067081081085066', blogTitle:'常用条码打印大全(PB版)', blogAbstract:'特点描述:主要针对PowerBuilder程序开发者,当然应用程序也可直接供给最终用户用来打印价签、条码证件之类的东东;本程序无需安装条码字库,无需控件,无需条码打印机,功能已封装为对象,接口简单,提供label风格的数据窗口预览(即可设定每页纵向及横向标签的数量、排版的顺序、纵向及横向间距,标签的宽度及高度等),可用激光打印机、喷墨打印机或者针式打印机打印,可进行完整的条码打印或仅打印条形码,可设定条码的线宽。 特点描述:主要针对PowerBuilder程序开发者,当然应用程序也可直接供给最终用户用来打印价签、条码证件之类的东东;本程序无需安装条码字库,无需控件,无需条码打印机,功能已封装为对象,接口简单,提供label风格的数据窗口预览(即可设定每页纵向及横向标签的数量、排版的顺序、纵向及横向间距,标签的宽度及高度等),可用激光打印机、喷墨打印机或者针式打印机打印', blogTag:'', blogUrl:'blog/static/17505731200831024458280', isPublished:1, istop:false, type:0, modifyTime:1207809898280, publishTime:1207809898280, permalink:'blog/static/17505731200831024458280', commentCount:6, mainCommentCount:5, recommendCount:0, bsrk:-100, publisherId:0, recomBlogHome:false, currentRecomBlog:false, attachmentsFileIds:[], vote:{}, groupInfo:{}, friendstatus:'none', followstatus:'unFollow', pubSucc:'', visitorProvince:'', visitorCity:'', visitorNewUser:false, postAddInfo:{}, mset:'000', mcon:'', srk:-100, remindgoodnightblog:false, isBlackVisitor:false, isShowYodaoAd:false, hostIntro:'菜鳥也瘋狂!菜菜的菜鳥,瘋狂的菜鳥.總是會有一天菜鳥成老鳥滴.', hmcon:'0', selfRecomBlogCount:'0', lofter_single:'' } {list a as x} {if !!x} {if x.visitorName==visitor.userName} {else} {/if} {if x.moveFrom=='wap'} {elseif x.moveFrom=='iphone'} {elseif x.moveFrom=='android'} {elseif x.moveFrom=='mobile'} {/if} ${fn(x.visitorNickname,8)|escape} {/if} {/list} {if !!a} ${fn(a.nickname,8)|escape} ${a.selfIntro|escape}{if great260}${suplement}{/if} {/if} {list a as x} {if !!x} ${fn(x.title,26)|escape} {/if} {/list} 推荐过这篇日志的人: {list a as x} {if !!x} ${fn(x.recommenderNickname,6)|escape} {/if} {/list} {if !!b&&b.length>0} 他们还推荐了: {list b as y} {if !!y} ·${y.recommendBlogTitle|escape} {/if} {/list} {/if} 转载记录: {list d as x} · ${x.referBlogTitle|escape} ${x.referUserName|escape} {/list} {list a as x} {if !!x} ${x.title|default:""|escape} {/if} {/list} {list a as x} {if !!x} ${x.title|default:""|escape} {/if} {/list} {list a as x} {if !!x} ${x.blogTile|default:""|escape} {/if} {/list} {list a as x} {if x_index>4}{break}{/if} {if !!x} ${fn1(x.title,60)|escape}${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')} {/if} {/list} {list a as x} {if !!x} ${fn(x.title,26)|escape} {/if} {/list} {if !!(blogDetail.preBlogPermalink)} ${blogDetail.preBlogTitle|escape} {/if} {if !!(blogDetail.nextBlogPermalink)} ${blogDetail.nextBlogTitle|escape} {/if} {list a as x} {if !!x} {if x.publisherUsername==visitor.userName} {else} {/if} ${fn(x.publisherNickname,8)|escape} {/if} {/list} 被推荐日志 最新日志 该作者的其他文章 博主推荐 随机阅读 首页推荐 更多>> {list a as x} {if !!x} ${x.nickName|escape} 投票给 {var first_option = true;} {list x.voteDetailList as voteToOption} {if voteToOption==1} {if first_option==false},{/if} “${b[voteToOption_index]}” {/if} {/list} {if (x.role!="-1") },“我是${c[x.role]}” {/if} ${fn1(x.voteTime)} {if x.userName==''}{/if} {/if} {/list} 页脚 公司简介 - 联系方法 - 招聘信息 - 客户服务 - 隐私政策 - 博客风格 - 手机博客 - VIP博客 - 订阅此博客 网易公司版权所有 ©1997-2014 帮助 ${u} {list wl as x} ${x.g} {list x.l as y} ${y.n} {/list} {/list} {if defined('wl')} {list wl as x}${x.n}{/list} {/if}