zoukankan      html  css  js  c++  java
  • 在Winform里生成Barcode条码

    下载文件 点击下载此文件DLL文件

    下载文件 点击下载此文件字体

    第一步:先加载DLL文件
    第二步:
    程序代码 程序代码

    using System.Drawing.Printing;
    using System.Drawing.Imaging;
    using System.IO;
    using Cobainsoft.Windows.Forms;
    using System.Diagnostics;

    第三步:
    程序代码 程序代码
    private void button1_Click(object sender, EventArgs e)
            {
                PrintDocument pd = new PrintDocument();
                //数据源
                barcodeControl1.Data = textBox1.Text;
                //是否拉伸数据对齐边缘
                barcodeControl1.StretchText = false;
                //是否打印星号
                barcodeControl1.ShowCode39StartStop = false;
                //标题
                barcodeControl1.CopyRight = null;
                
            }


    好多属性都可以通过用户控件属里修改


    _________________________________________________________________

    在水晶报表[CrystalReport]中利用字体实现条形码的打印

    字体是Code39  

    在文本对象中加入*bany*  (记得前后的*号要加上,否则扫描枪是扫不出来的)

  • 相关阅读:
    Unit of Work
    Layered Supertype
    Domain Model
    ASP.Net设计模式读书笔记
    VS2010无法使用nuget安装第三方包的问题
    数据库对象命名
    sql50题
    RESTFul API
    EasyUI日历控件
    ASP.NET MVC 防止前端点击劫持
  • 原文地址:https://www.cnblogs.com/Bany/p/1755541.html
Copyright © 2011-2022 走看看