• 大小: 0.27M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 条码  识别  

资源简介


代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZXing.Common;
using ZXing;
using System.Windows.Forms;
using System.Drawing;
using System.Text.Regularexpressions;
using ZXing.QrCode;
namespace BarCode
{
    class BarCodeClass
    {
        ///
        ///生成条形码
        ///

        ///
        ///
        public void CreateBarCode(PictureBox pictureBox1string Contents)
        {
            Regex rg = new Regex(“^[0-9]{12}$“);
            if(!rg.IsMatch(Contents))
             {
                 MessageBox.Show(“本例子采用EAN_13编码,需要输入12位数字“);
                 return;
             }
 
            EncodingOptions options =null;
            Barc

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-10-26 10:33  barcode\
     目录           0  2017-10-26 11:02  barcode\WindowsFormsApplication1\
     文件        2595  2017-10-26 10:50  barcode\WindowsFormsApplication1\BarCodeClass.cs
     文件         847  2017-10-26 10:42  barcode\WindowsFormsApplication1\Docementbase.cs
     文件        1489  2017-10-26 11:01  barcode\WindowsFormsApplication1\Form2.Designer.cs
     文件         461  2017-10-26 11:01  barcode\WindowsFormsApplication1\Form2.cs
     文件        5817  2017-10-26 11:01  barcode\WindowsFormsApplication1\Form2.resx
     文件        5678  2017-10-26 11:02  barcode\WindowsFormsApplication1\Main1.Designer.cs
     文件        2035  2017-10-26 11:02  barcode\WindowsFormsApplication1\Main1.cs
     文件        5817  2017-10-26 11:02  barcode\WindowsFormsApplication1\Main1.resx
     文件         489  2017-10-26 11:05  barcode\WindowsFormsApplication1\Program.cs
     目录           0  2017-10-26 10:33  barcode\WindowsFormsApplication1\Properties\
     文件        1380  2017-10-26 10:32  barcode\WindowsFormsApplication1\Properties\AssemblyInfo.cs
     文件        2900  2017-10-26 10:32  barcode\WindowsFormsApplication1\Properties\Resources.Designer.cs
     文件        5612  2017-10-26 10:32  barcode\WindowsFormsApplication1\Properties\Resources.resx
     文件        1111  2017-10-26 10:32  barcode\WindowsFormsApplication1\Properties\Settings.Designer.cs
     文件         249  2017-10-26 10:32  barcode\WindowsFormsApplication1\Properties\Settings.settings
     文件        4484  2017-10-26 11:02  barcode\WindowsFormsApplication1\WindowsFormsApplication1.csproj
     文件         143  2017-10-26 10:33  barcode\WindowsFormsApplication1\WindowsFormsApplication1.csproj.user
     目录           0  2017-10-26 10:33  barcode\WindowsFormsApplication1\bin\
     目录           0  2017-10-26 11:04  barcode\WindowsFormsApplication1\bin\Debug\
     文件    11141237  2017-10-26 10:11  barcode\WindowsFormsApplication1\bin\Debug\Release.xltd
     文件        4096  2017-10-26 10:11  barcode\WindowsFormsApplication1\bin\Debug\Release.xltd.cfg
     文件       13824  2017-10-26 11:04  barcode\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
     文件       38400  2017-10-26 11:04  barcode\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
     文件       11600  2017-10-26 11:05  barcode\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
     文件      425984  2017-10-26 10:15  barcode\WindowsFormsApplication1\bin\Debug\zxing.dll
     目录           0  2017-10-26 11:08  barcode\WindowsFormsApplication1\bin\Release\
     文件        3027  2017-10-26 10:47  barcode\WindowsFormsApplication1\imageDocument.cs
     目录           0  2017-10-26 10:33  barcode\WindowsFormsApplication1\obj\
     目录           0  2017-10-26 10:33  barcode\WindowsFormsApplication1\obj\x86\
............此处省略14个文件信息

评论

共有 条评论