IT民工——全世界最齐全的条形码库!包括Code128/Code93/Code39/EAN13等22种条形码
前言:
我是一名IT民工,热爱计算机 热爱软件。我从事.net平台开发也有几年了,专注c#。熟悉: ORM/RBAC/AOP/OO/持久层/数据流/工作流/信息流/企业系统开发/Excel等解密等。
我过去几年直到现在的技术积累,希望能帮上各位兄弟。如果各位兄弟看上眼,一元钱用淘宝拍下;在淘宝商品备注留下email和项目的名字;我会邮寄给您代码源码密码和说明文档。
一元钱不多,希望能节省您的开发时间,也支持鼓励下我。如果兄弟收到了源码,也请保存好,不要放在互联网上,留小弟一条小小路走。我的淘宝用户是:pixysoft ,请确认,不要被恶意者冒用。
如果各位兄弟有小项目或者小想法,不想自己费神,我也愿意毛遂自荐承担一下,价格你开,只要我能做的就一定答应帮您做好!
代码目的:
通过C#生成条码以及图片,包含了多达22种条码!
代码测试片段:
![](https://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif)
using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.BarCode;
namespace Pixysoft.Iter.BarCodes.TestDriven
{
class Testcase
{
string basicpath = AppDomain.CurrentDomain.BaseDirectory + @"\";
public void test()
{
ImageBarCoder.Instance.ImgHeight = 40;
SaveImage(BarCodeType.Codabar, "A12345678A");
SaveImage(BarCodeType.Code11, "12345678901");
SaveImage(BarCodeType.Code128, "1234567890");
SaveImage(BarCodeType.Code128A, "1234567890");
SaveImage(BarCodeType.Code128B, "1234567890");
SaveImage(BarCodeType.Code128C, "1234567890");
SaveImage(BarCodeType.Code39, "1234567890");
SaveImage(BarCodeType.Code93, "1234567890");
SaveImage(BarCodeType.EAN128, "1234567890");
SaveImage(BarCodeType.EAN13, "1234567890123");
SaveImage(BarCodeType.EAN8, "12345678");
SaveImage(BarCodeType.Interleaved2of5, "1234567890");
SaveImage(BarCodeType.ISBN, "1234567890");
SaveImage(BarCodeType.ITF14, "12345678901234");
SaveImage(BarCodeType.JAN13, "4934567890123");
SaveImage(BarCodeType.MSI, "1234567890");
SaveImage(BarCodeType.Postnet, "12345678901");
SaveImage(BarCodeType.Standard2of5, "1234567890");
SaveImage(BarCodeType.UPCA, "12345678901");
SaveImage(BarCodeType.UPCE, "12345678");
SaveImage(BarCodeType.UPCSupplement2, "12");
SaveImage(BarCodeType.UPCSupplement5, "12345");
}
private void SaveImage(BarCodeType type, string codevalue)
{
ImageBarCoder.Instance.GetBarCodeLabelImage(type, codevalue, type.ToString() + "." + codevalue).Save(basicpath +
type.ToString() + ".jpg");
}
}
}
using System.Collections.Generic;
using System.Text;
using Pixysoft.BarCode;
namespace Pixysoft.Iter.BarCodes.TestDriven
{
class Testcase
{
string basicpath = AppDomain.CurrentDomain.BaseDirectory + @"\";
public void test()
{
ImageBarCoder.Instance.ImgHeight = 40;
SaveImage(BarCodeType.Codabar, "A12345678A");
SaveImage(BarCodeType.Code11, "12345678901");
SaveImage(BarCodeType.Code128, "1234567890");
SaveImage(BarCodeType.Code128A, "1234567890");
SaveImage(BarCodeType.Code128B, "1234567890");
SaveImage(BarCodeType.Code128C, "1234567890");
SaveImage(BarCodeType.Code39, "1234567890");
SaveImage(BarCodeType.Code93, "1234567890");
SaveImage(BarCodeType.EAN128, "1234567890");
SaveImage(BarCodeType.EAN13, "1234567890123");
SaveImage(BarCodeType.EAN8, "12345678");
SaveImage(BarCodeType.Interleaved2of5, "1234567890");
SaveImage(BarCodeType.ISBN, "1234567890");
SaveImage(BarCodeType.ITF14, "12345678901234");
SaveImage(BarCodeType.JAN13, "4934567890123");
SaveImage(BarCodeType.MSI, "1234567890");
SaveImage(BarCodeType.Postnet, "12345678901");
SaveImage(BarCodeType.Standard2of5, "1234567890");
SaveImage(BarCodeType.UPCA, "12345678901");
SaveImage(BarCodeType.UPCE, "12345678");
SaveImage(BarCodeType.UPCSupplement2, "12");
SaveImage(BarCodeType.UPCSupplement5, "12345");
}
private void SaveImage(BarCodeType type, string codevalue)
{
ImageBarCoder.Instance.GetBarCodeLabelImage(type, codevalue, type.ToString() + "." + codevalue).Save(basicpath +
type.ToString() + ".jpg");
}
}
}
支持的条码列表:
![](https://images.cnblogs.com/OutliningIndicators/ExpandedBlockStart.gif)
public enum BarCodeType
{
Interleaved2of5,
Code128,
Code128A,
Code128B,
Code128C,
Codabar,
Code11,
Code39,
Code93,
EAN128,
EAN13,
EAN8,
ISBN,
ITF14,
JAN13,
MSI,
Postnet,
Standard2of5,
UPCA,
UPCE,
UPCSupplement2,
UPCSupplement5,
}
{
Interleaved2of5,
Code128,
Code128A,
Code128B,
Code128C,
Codabar,
Code11,
Code39,
Code93,
EAN128,
EAN13,
EAN8,
ISBN,
ITF14,
JAN13,
MSI,
Postnet,
Standard2of5,
UPCA,
UPCE,
UPCSupplement2,
UPCSupplement5,
}
打印效果图:
代码源码下载
源码售价仅39.9元!!
http://www.boxcn.net/shared/ipkpllruct 下载链接:
淘宝支付链接:
http://item.taobao.com/auction/item_detail-0db2-6a5ea9c9743719adfecde9742c689d9f.jhtml