http://www.codeproject.com/cs/webservices/wsbarcode.asp?target=barcodeMontaque==HouYongfeng==Digitalboy==Rainman

解决方案 »

  1.   

    C# Barcode Generator WebServicehttp://www.codeproject.com/cs/webservices/wsbarcode.asp?target=barcode刚找到,我还没试.
      

  2.   

    我已经测试好了.1.将FREE3OF9.TTF Code39.cs文件拷贝到你的ASPX文件目录(这两个文件在下载的包里找).并将Code39.cs包括进项目中,编译一次.2.ASP.NET(C#)中:
    using System.Drawing.Imaging;
    using System.IO;//此句绑定Image1图片.
    Image1.ImageUrl=getCodeBar("123456", 30, true , "海阔天空.net");
    private string getCodeBar(string code, int barSize, bool showCodeString, string title)
    { Code39 c39=new Code39(); c39.FontFamilyName="Free 3 of 9";
    c39.FontFileName=Server.MapPath(".") + "/FREE3OF9.TTF";
    c39.FontSize=barSize;
    c39.ShowCodeString=showCodeString;
    if (title+""!="")
    c39.Title=title;
    Bitmap objBitmap=c39.GenerateBarcode(code);
    string path=Request.Path.ToString();
    path=path.Substring(0,path.LastIndexOf("/"));
    string fileName=System.DateTime.Now.Millisecond.ToString()+".jpg";
    objBitmap.Save(Server.MapPath(".") +"/"+fileName,ImageFormat.Jpeg); return path.ToString()+"/"+fileName.ToString();
    }
    哦,快三点了. 睡觉先了.
      

  3.   

    哦,提醒一下, Code39.cs文件里的名称空间要改为你的项目的名称空间.
      

  4.   

    再就是,好像不能对字母生成barcode