<
telerik:RadBarcodePDF417
Name
=
"barcode1"
Width
=
"480"
Height
=
"152"
HorizontalAlignment
=
"Left"
>
</
telerik:RadBarcodePDF417
>
Some other solutions I tested have properties like "NumberOfRows" and "NumberOfColumns". I would like to know whether it is possible to adjust that with RadControls.
Please help. Thank you.
8 Answers, 1 is accepted
Internally, code PDF417 renders in columns and rows. These rows and columns create a grid, which in turn accommodates all the modules of encoded data. The maximum number of columns in the code is 30, whereas the maximum number of rows is 90. Depending on the scenario, this internal behavior may influence the readability of the control. To address this, two properties are exposed - Rows and Columns. These two properties will allow you to pre-determine the number of rows and columns in the rendered PDF417 code. For example, when you have limited width, you can increase the number of rows. The code sample below demonstrates one possible usage:
<Barcodes:RadBarcodePDF417 Text="Encoded data which will influence the rendered PDF417" Rows="10">
</Barcodes:RadBarcodePDF417>
One thing to keep in mind is that these properties are related to the data, which needs to be encoded. If there is too much data, more rows/columns will be added. If there is insufficient data, not all rows/columns will be used.
I hope this information helps.
Greetings,
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
"The property 'rows' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'."
I am using the following code:
<
Window
x:Class
=
"RadControlsWpfApp3.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
telerik:RadBarcodePDF417
Name
=
"pdf417"
Text
=
"some text"
Rows
=
"9"
></
telerik:RadBarcodePDF417
>
</
Grid
>
</
Window
>
Indeed, this is the source of the issue. This feature has been added recently. In order to take advantage of it, you will need to download the latest version of the controls.
Kind regards,
Yavor
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I don't have the Rows property, which is concering. I added the following references:
- Telerik.Windows.Data.dll,
- Telerik.Windows.Controls.dll,
- Telerik.Windows.Controls.DataVisualization.dll,
I downloaded and tested the latest version from your account, and it did contain the properties.
You can download it as well, and give it a try.
All the best,
Yavor
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thank you for your support!
I have a question. Is it possible to define a number of data columns? I need to have 9 data columns (13 total) in generated code. Currently, when number of columns is set to 9, the number of columns in the generated image varies, depending on the text.
Also, I would need to be able to set the height to width ratio of base element (small square), which should be 3:1.
And the final question: is it possible to set text encoding (like UTF-8, Windows-1250)?
Thank you.
Presently, the PDF417 works as follows. The user selects the number of rows and columns. This defines a ratio. If this ratio is enough to accomodate the data in the code, it is rendered like this. If that is not the case, the rows and columns are sequentially incremented, trying to preserve the ratio. Additionally, keep in mind that the rows and columns are properties, pertaining to the data codewords section of the code. There are additional sectors on the left and on the right:
http://upload.wikimedia.org/wikipedia/commons/thumb/b/b3/PDF417_Example.svg/496px-PDF417_Example.svg.png
Further, the present version of the pdf417 barcode does not support additional character sets. The QR code does.
I hope this information helps.
Kind regards,
Yavor
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.