资源简介

C#简单易懂的RDLC(水晶报表)打印二维码,全CSDN最低积分

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Printing;
using System.Drawing.Imaging;
using System.IO;
using Cobainsoft.Windows.Forms;
using Microsoft.Reporting.WinForms;

namespace BarCodeWinDemo
{
    public partial class BarCodeSetupBox : Form
    {
        public BarCodeSetupBox()
        {
            InitializeComponent();
        }

        private void comType_SelectedIndexChanged(object sender EventArgs e)
        {
            barcodeControl2.BarcodeType = GetBarcodeType(comType.Text);
            Invalidate();
        }

        BarcodeType GetBarcodeType(string cType)
        {
            BarcodeType bt = BarcodeType.CODE128A;
            switch (cType.ToUpper())
            {
                case “CODE128A“:
                    bt = BarcodeType.CODE128A;
                    break;
                case “C2OF5“:
                    bt = BarcodeType.C2OF5;
                    break;
                case “CODABAR“:
                    bt = BarcodeType.CODABAR;
                    break;
                case “CODE128B“:
                    bt = BarcodeType.CODE128B;
                    break;
                case “CODE128C“:
                    bt = BarcodeType.CODE128C;
                    break;
                case “CODE39“:
                    bt = BarcodeType.CODE39;
                    break;
                case “CODE39CHECK“:
                    bt = BarcodeType.CODE39CHECK;
                    break;
                case “CODE93“:
                    bt = BarcodeType.CODE93;
                    break;
                case “EAN128A“:
                    bt = BarcodeType.EAN128A;
                    break;
                case “EAN128B“:
                    bt = BarcodeType.EAN128B;
                    break;
                case “EAN128C“:
                    bt = BarcodeType.EAN128C;
                    break;
                case “EAN13“:
                    bt = BarcodeType.EAN13;
                    break;
                case “EAN13_2“:
                    bt = BarcodeType.EAN13_2;
                    break;
                case “EAN13_5“:
                    bt = BarcodeType.EAN13_5;
                    break;
                case “EAN8“:
                    bt = BarcodeType.EAN8;
                    break;
                case “EAN8_2“:
                    bt = BarcodeType.EAN8_2;
                    break;
                case “EAN8_5“:
                    bt = BarcodeType.EAN8_5;
                    break;
                case “INTERLEAVED2OF5“:
                    bt = BarcodeType.INTERLEAVED2OF5;
                    break;
                case “MSIPLESSEY“:
                    bt = BarcodeType.MSIPLESSEY;
                    break;
                case “MSIPLESSEYCHECK10“:
                  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       9370  2007-11-27 11:26  RDLC报表打印二维码\Backup\BarCodeWinDemo\BarCodeSetupBox.cs

     文件      19325  2007-11-27 11:26  RDLC报表打印二维码\Backup\BarCodeWinDemo\BarCodeSetupBox.Designer.cs

     文件       5814  2007-11-27 11:26  RDLC报表打印二维码\Backup\BarCodeWinDemo\BarCodeSetupBox.resx

     文件       4152  2007-11-27 11:22  RDLC报表打印二维码\Backup\BarCodeWinDemo\BarCodeWinDemo.csproj

     文件        168  2007-11-27 11:26  RDLC报表打印二维码\Backup\BarCodeWinDemo\BarCodeWinDemo.csproj.user

     文件       1256  2007-11-27 11:23  RDLC报表打印二维码\Backup\BarCodeWinDemo\Person.cs

     文件        483  2007-05-22 14:39  RDLC报表打印二维码\Backup\BarCodeWinDemo\Program.cs

     文件       1196  2007-03-01 23:50  RDLC报表打印二维码\Backup\BarCodeWinDemo\Properties\AssemblyInfo.cs

     文件        591  2007-03-02 19:41  RDLC报表打印二维码\Backup\BarCodeWinDemo\Properties\DataSources\Person.datasource

     文件       2882  2007-03-01 23:50  RDLC报表打印二维码\Backup\BarCodeWinDemo\Properties\Resources.Designer.cs

     文件       5612  2007-03-01 23:50  RDLC报表打印二维码\Backup\BarCodeWinDemo\Properties\Resources.resx

     文件       1097  2007-03-01 23:50  RDLC报表打印二维码\Backup\BarCodeWinDemo\Properties\Settings.Designer.cs

     文件        249  2007-03-01 23:50  RDLC报表打印二维码\Backup\BarCodeWinDemo\Properties\Settings.settings

     文件      11543  2007-03-02 20:05  RDLC报表打印二维码\Backup\BarCodeWinDemo\Report1.rdlc

     文件       1617  2007-03-02 01:56  RDLC报表打印二维码\Backup\Cobainsoft.Controls.sln

    ..A..H.     34304  2007-11-27 11:35  RDLC报表打印二维码\Backup\Cobainsoft.Controls.suo

     文件       9393  2013-12-04 11:36  RDLC报表打印二维码\BarCodeWinDemo\BarCodeSetupBox.cs

     文件      19325  2007-11-27 11:26  RDLC报表打印二维码\BarCodeWinDemo\BarCodeSetupBox.Designer.cs

     文件       5814  2007-11-27 11:26  RDLC报表打印二维码\BarCodeWinDemo\BarCodeSetupBox.resx

     文件       4311  2013-12-04 11:33  RDLC报表打印二维码\BarCodeWinDemo\BarCodeWinDemo.csproj

     文件        168  2013-12-04 11:25  RDLC报表打印二维码\BarCodeWinDemo\BarCodeWinDemo.csproj.user

     文件     139264  2007-03-02 01:02  RDLC报表打印二维码\BarCodeWinDemo\bin\Debug\BarCode.dll

     文件      20480  2013-12-04 11:36  RDLC报表打印二维码\BarCodeWinDemo\bin\Debug\BarCodeWinDemo.exe

     文件      50688  2013-12-04 11:36  RDLC报表打印二维码\BarCodeWinDemo\bin\Debug\BarCodeWinDemo.pdb

     文件      11592  2013-12-04 11:38  RDLC报表打印二维码\BarCodeWinDemo\bin\Debug\BarCodeWinDemo.vshost.exe

     文件      16384  2007-03-08 11:39  RDLC报表打印二维码\BarCodeWinDemo\bin\Debug\ProgressTracker.dll

     文件      15872  2007-03-08 11:39  RDLC报表打印二维码\BarCodeWinDemo\bin\Debug\ProgressTracker.pdb

     文件      11543  2007-03-02 20:05  RDLC报表打印二维码\BarCodeWinDemo\bin\Debug\Report1.rdlc

     文件        487  2007-11-27 11:26  RDLC报表打印二维码\BarCodeWinDemo\obj\BarCodeWinDemo.csproj.FileList.txt

     文件        180  2013-12-04 11:33  RDLC报表打印二维码\BarCodeWinDemo\obj\Debug\BarCodeWinDemo.BarCodeSetupBox.resources

............此处省略43个文件信息

评论

共有 条评论