如何从使用C#字符串酒吧code? [英] How to generate barcode from a string using C#?

查看:166
本文介绍了如何从使用C#字符串酒吧code?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 是否有可能从字符串产生酒吧code
    使用C#?

  • 是否有任何内建类asp.net中产生酒吧codeS?

  • 是否有可能以检测系统?
  • 连接棒​​code打印机
  • Is it possible to generate barcode from a string using c#?
  • Is there any builtin classes for generating barcodes in asp.net?
  • Is it possible to detect a barcode printer connected with a system?

推荐答案

没错。当然,这是可能的。 :-)结果
据我所知,有两种方法来产生酒吧codeS:

Yep. Of course it is possible. :-)
As far as I know there are two ways to generate bar codes:


  1. 使用一个特殊的酒吧code字型(尝试谷歌栏code字型自由)

  2. 渲染酒吧code到图像,并显示(请尝试使用酒吧code渲染框架上codePLEX使用

  1. Using a special bar code font (try to google for "barcode font free")
  2. Render the bar code to an image and display that (try using the Barcode Rendering Framework available on codeplex)

在回应有关检测巴code打印机更新的问题:结果
我觉得酒吧code打印机会显示为系统上的普通打印机。至少,这是怎样的设备我与工作过比赛。结果
这意味着您可以通过枚举系统上安装的打印机和寻找指定设备检测特定酒吧code打印机,但在大多数情况下,我建议你让用户指定自己使用的打印机无论是标准的打印对话框或使用自定义对话框。

In response to your updated question about detecting barcode printers:
I think a barcode printer will show up as a regular printer on your system. At least that is how the devices I have played with have worked.
This means that you can detect a specific barcode printer by enumerating the installed printers on the system and looking for the specified device, but in most cases I would suggest that you let the user specify the printer himself using either the standard print dialog or using a custom dialog.

这篇关于如何从使用C#字符串酒吧code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆