彩票走势图

通过C1ReportDesigner实现条形码在报表中的使用

原创|其它|编辑:郝浩|2012-10-18 16:46:56.000|阅读 1447 次

概述:通过可扩展的自定义字段结构,ComponentOne Reports for WinForms能够很好的支持条形码字段,条形码自定义字段主要是利用ComponentOne Studio for Winforms的C1.Win.C1BarCode实现。下文主要展示了通过C1ReportDesigner应用程序实现条形码在报表中的使用。

# 慧都年终大促·界面/图表报表/文档/IDE等千款热门软控件火热促销中 >>

通过可扩展的自定义字段结构,ComponentOne Reports for WinForms能够很好的支持条形码字段,条形码自定义字段主要是利用ComponentOne Studio for Winforms的C1.Win.C1BarCode实现。下文主要展示了通过C1ReportDesigner应用程序实现条形码在报表中的使用。

A BarCode is an optical machine-readable representation of data relating to the object to which it is attached. BarCodes are very much commercially successful and forms the backbone of automated checkout system in many industries.

Originally barcodes represented data by varying the widths and spacing of parallel lines, and may be referred to as linear or one-dimensional (1D). Later they evolved into rectangles, dots, hexagons and other geometric patterns in two dimensions (2D). And both these forms of the BarCode are supported in C1Reports.

C1Reports offers two forms of BarCode :

  1. BarCode, one-dimensional
  2. QRCode, two-dimensional

A. One-Dimensional BarCode :

The Fields group under Design tab in the C1ReportDesigner application provides tools for adding various report fields including the BarCode field. This toolbar is enabled only in design mode.

In Unbound report, barcode field is disabled. To display a barcode, you need to add a Label field and set its BarCode property to any value other than ‘None’. Whereas in Bound mode, ‘Add Barcode’ button is enabled and on clicking it, a list appears which gives the option to select Data-Fields from the attached data source and display them as barcode.

Various type of barcode formats are supported by C1Reports and you may choose from the available options present in the DropDown.

B. Two-Dimensional BarCode :

QR Code (abbreviated from Quick Response Code) is the trademark for a type of matrix barcode (or two-dimensional code) and is now offered by C1Reports as one of it’s custom field but only in the 4.0 Framework.

QRCode custom field is also present in the Fields group of the Design tab in the C1ReportDesigner application.

To use QRcode custom field in the C1ReportDesigner application, follow the given steps:

  • Run the C1ReportDesigner application. See Accessing C1ReportDesigner from Visual Studio for details.
  • Check if the QRCode icon is present in the C1ReportDesigner toolbar. If QRCode icon is missing, follow the troubleshooting steps from this link to add the icon in the C1ReportDesigner.
  • Create a new report or open an existing report. See Creating a Basic Report Definition for an example.
  • Click the QRCode icon and drag it onto your report to add a QRCode field.

That’s it! The main aspects of the QRCode field include :

CodeVersion
Encoding
ErrorCorrectionLevel  

Run the C1ReportDesigner application, perform the above mentioned steps and Happy Bar-Coding!

本文转载自://our.componentone.com/2012/10/17/working-with-barcode-in-c1reports/


标签:

本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@pclwef.cn

文章转载自:componentone

为你推荐

  • 推荐视频
  • 推荐活动
  • 推荐产品
  • 推荐文章
  • 慧都慧问
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP