• 大小: 5.95MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-15
  • 语言: 其他
  • 标签:

资源简介

生成各类条码和二维码(支持各种数据源连接批量生成条码和二维码并提供打印)

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Drawing;
namespace WindowsFormsApplication4
{
   
        public class Code128
        {
            private DataTable m_Code128 = new DataTable();
            private uint m_Height = 40;
            /// 
            /// 高度
            /// 

            public uint Height { get { return m_Height; } set { m_Height = value; } }
            private Font m_ValueFont = null;
            /// 
            /// 是否显示可见号码 如果为NULL不显示号码
            /// 

            public Font ValueFont { get { return m_ValueFont; } set { m_ValueFont = value; } }
            private byte m_Magnify = 0;
            /// 
            /// 放大倍数
            /// 

            public byte Magnify { get { return m_Magnify; } set { m_Magnify = value; } }
            /// 
            /// 条码类别
            /// 

            public enum Encode
            {
                Code128A
                Code128B
                Code128C
                EAN128
            }
            public Code128()
            {
                m_Code128.Columns.Add(“ID“);
                m_Code128.Columns.Add(“Code128A“);
                m_Code128.Columns.Add(“Code128B“);
                m_Code128.Columns.Add(“Code128C“);
                m_Code128.Columns.Add(“BandCode“);
                m_Code128.CaseSensitive = true;
                #region 数据表
                m_Code128.Rows.Add(“0“ “ “ “ “ “00“ “212222“);
                m_Code128.Rows.Add(“1“ “!“ “!“ “01“ “222122“);
                m_Code128.Rows.Add(“2“ “\““ “\““ “02“ “222221“);
                m_Code128.Rows.Add(“3“ “#“ “#“ “03“ “121223“);
                m_Code128.Rows.Add(“4“ “$“ “$“ “04“ “121322“);
                m_Code128.Rows.Add(“5“ “%“ “%“ “05“ “131222“);
                m_Code128.Rows.Add(“6“ “&“ “&“ “06“ “122213“);
                m_Code128.Rows.Add(“7“ “‘“ “‘“ “07“ “122312“);
                m_Code128.Rows.Add(“8“ “(“ “(“ “08“ “132212“);
                m_Code128.Rows.Add(“9“ “)“ “)“ “09“ “221213“);
                m_Code128.Rows.Add(“10“ “*“ “*“ “10“ “221312“);
                m_Code128.Rows.Add(“11“ “+“ “+“ “11“ “231212“);
                m_Code128.Rows.Add(“12“ ““ ““ “12“ “112232“);
                m_Code128.Rows.Add(“13“ “-“ “-“ “13“ “122132“);
                m_Code128.Rows.Add(“14“ “.“ “.“ “14“ “122231“);
                m_Code128.Rows.Add(“15“ “/“ “/“ “15“ “113222“);
                m_Code128.Rows.Add(“16“ “0“ “0“ “16“ “123122“);
                m_Code128.Rows.Add(“17“ “1“ “1“ “17“ “123221“);
                m_Code128.Rows.Add(“18“ “2“ “2“ “18“ “223211“);
                m_Code128.Rows.Add(“19“ “3“ “3“ “19“ “221132“);
                m_Code128.Rows.Add(“20“ “4“ “4“ 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-04-03 16:08  圆片 二维码 - logo\
     目录           0  2015-04-03 16:08  圆片 二维码 - logo\Application Files\
     目录           0  2015-04-03 16:08  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_0\
     文件      139264  2015-02-05 10:16  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_0\BarCode.dll.deploy
     文件      110080  2012-02-07 11:34  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_0\BarcodeLib.dll.deploy
     文件      302352  2013-10-05 02:38  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_0\Microsoft.QualityTools.Testing.Fakes.dll.deploy
     文件        5809  2015-02-15 23:51  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_0\WindowsFormsApplication4.application
     文件         187  2015-02-05 12:56  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_0\WindowsFormsApplication4.exe.config.deploy
     文件       28160  2015-02-15 23:51  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_0\WindowsFormsApplication4.exe.deploy
     文件       10103  2015-02-15 23:51  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_0\WindowsFormsApplication4.exe.manifest
     目录           0  2015-04-03 16:08  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_0\zh-Hans\
     文件       23360  2013-10-05 04:12  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_0\zh-Hans\Microsoft.QualityTools.Testing.Fakes.resources.dll.deploy
     目录           0  2015-04-03 16:08  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_1\
     文件      139264  2015-02-05 10:16  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_1\BarCode.dll.deploy
     文件      110080  2012-02-07 11:34  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_1\BarcodeLib.dll.deploy
     文件      302352  2013-10-05 02:38  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_1\Microsoft.QualityTools.Testing.Fakes.dll.deploy
     文件        5809  2015-02-16 00:27  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_1\WindowsFormsApplication4.application
     文件         187  2015-02-05 12:56  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_1\WindowsFormsApplication4.exe.config.deploy
     文件       36352  2015-02-16 00:27  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_1\WindowsFormsApplication4.exe.deploy
     文件       10103  2015-02-16 00:27  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_1\WindowsFormsApplication4.exe.manifest
     目录           0  2015-04-03 16:08  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_1\zh-Hans\
     文件       23360  2013-10-05 04:12  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_1\zh-Hans\Microsoft.QualityTools.Testing.Fakes.resources.dll.deploy
     目录           0  2015-04-03 16:08  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_2\
     文件      139264  2015-02-05 10:16  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_2\BarCode.dll.deploy
     文件      110080  2012-02-07 11:34  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_2\BarcodeLib.dll.deploy
     文件      302352  2013-10-05 02:38  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_2\Microsoft.QualityTools.Testing.Fakes.dll.deploy
     文件        5809  2015-02-16 09:31  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_2\WindowsFormsApplication4.application
     文件         187  2015-02-05 12:56  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_2\WindowsFormsApplication4.exe.config.deploy
     文件       41472  2015-02-16 09:31  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_2\WindowsFormsApplication4.exe.deploy
     文件       10103  2015-02-16 09:31  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_2\WindowsFormsApplication4.exe.manifest
     目录           0  2015-04-03 16:08  圆片 二维码 - logo\Application Files\WindowsFormsApplication4_1_0_0_2\zh-Hans\
............此处省略454个文件信息

评论

共有 条评论

相关资源