当前位置:编程学习 > C#/ASP.NET >>

c# 条形码(求指教)

因公司需要完成一条形码打印问题,所以在找到一些资料做了一个Demo

特请教!

不知道此条形码是否正确:

图:

 

\

源码:

 

\代码
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Paabo.WordProcessing.Common
{
    public class BarCodeProvider
    {
        #region 单例
        private static BarCodeProvider _Intance;
        public static BarCodeProvider Intance
        {
            get
            {
                if (_Intance == null)
                {
                    _Intance = new BarCodeProvider();
                }
                return _Intance;
            }
        }
        #endregion

        #region Size
        /// <summary>
        /// 图片宽度
        /// </summary>
        private int _Width = 200;
        public int Width
        {
            get { return _Width; }
            set { _Width = value; }
        }


        /// <summary>
        /// 图片高度
        /// </summary>
        private int _Height = 80;
        public int Height 
        {
            get { return _Height; }
          &nbs
补充:软件开发 , C# ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,