This is a migrated thread and some comments may be shown as answers.

Reporting Barcode 128 problem

11 Answers 511 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 26 Jun 2015, 09:15 AM

dear all,

 

i need to print barcode with telerik reporting Q3 2014 SP1, but i must use 128subsetA for three characters and 128SubsetC for 10 characters.

 i tried to do this :

 Telerik Reporting.Barcode.Encoder = Code128;

    Telerik Reporting.Barcode.value = My3CharSubsetA + "þ" + My10CharSubsetC;

or

    Telerik Reporting.Barcode.value = My3CharSubsetA + "ö" + My10CharSubsetC;

but it doesn't work, either the barcode is unreadable or Control character appears in reading.

same question if i need to start with SubsetB and then subsetC.

thanks by advance
best regards

Phil

11 Answers, 1 is accepted

Sort by
0
Phil
Top achievements
Rank 1
answered on 26 Jun 2015, 01:39 PM

I think I have found the good control character to activate subsetC in barcode encoding part : ú

so : Telerik Reporting.Barcode.value = My3CharSubsetA + "ú" + My10CharSubsetC;

 

but how to start encoding by subsetB and next part in subsetC ?

0
Phil
Top achievements
Rank 1
answered on 26 Jun 2015, 04:56 PM

Finally, it is not so goofd :( because with My3CharSubsetA + "ú" + My10CharSubsetC, Telerik add FNC4 or FNC14 control character in the result barcode....Back to square one :(

any help will be welcome

0
Stef
Telerik team
answered on 30 Jun 2015, 01:01 PM
Hi Phil,

Please check the additional information on Code128 in the 1D Barcodes article and test using the suggested controlling characters.

I hope the provided information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Phil
Top achievements
Rank 1
answered on 02 Jul 2015, 05:16 PM

Hi Stef,

I'm sorry,  your link is interesting, but the problem remains the same :(
i don't want a FNC4 Control character if I force subset128C in part of barcode 128 like this :
 this.barcode1.Value = "1234" + "\u00FE" + "5678";

because if this case telerik barcode control add itself a FNC4 control in barcode result.

My need is to have a barcode128 wich start in subset128B or A and next with subset128C, without add control character like FNC and so on. So Telerik Control doesn't seem flexible enough for this case... maybe in next version ?
thanks Stef
best regards
Phil

0
Stef
Telerik team
answered on 03 Jul 2015, 01:31 PM
Hello Phil,

The Barcode has a mechanism to recognize the characters and change the subset encoding without forcibly adding control characters. If you need the Barcode with a specific encoding initially e.g. Code128B, set it for the Barcode and when there are characters of other Code128 subset, the encoding will be changed automatically.

Please provide further details and examples causing you issues, and not working as specified in the 1D Barcodes article. Also if characters are of the same subset, why you need to use different encoding. This will help us understand the issue, the business requirements and the reason to need a control character.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Phil
Top achievements
Rank 1
answered on 03 Jul 2015, 02:22 PM

Hi Stef,

 thanks for your reply and help.

the french company Colissimo is specialised in package transport, and we developed a solution to print label in Colissimo format. in Colissimo specification, package tracking no. ( 13 characters of lenght) must be encoded in barcode128 of this way : The first three  characters in subsetB and the ten next in subsetC. and module value must be between 0.35mm and 0.37mm, and barcode total length must be 5cm. without any FNC character control...
I think it will be impossible to do this with the actual telerik barcode control, unless you have a solution...

I hope it's clearer for you about my need, thanks by advance.
best regards

Phil

0
Stef
Telerik team
answered on 06 Jul 2015, 01:40 PM
Hi Phil,

The Barcode item's mechanism will switch automatically the encoding between characters, if they are from different subsets e.g. 123ABCDEF will use Subset B and Subset C. If characters are of the same subset, the encoding will remain the same unless it is forced to via control character.

Please send us exact value that will be used for the Barcode item, and details about the items settings. Thus we can check if the requested functionality is available.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Phil
Top achievements
Rank 1
answered on 06 Jul 2015, 02:14 PM

Hi Stef,

See below Colissimo specification and barcode value example for tracking No. :

Tracking No. value : 6C10693091353

 so : 6C1 must be encoded in barcode128 Subset B and 0693091353 must be encoded in barcode128 subset C

base module value must be between 0,33 à 0,375 mm

Bar Height : 27mm

let me know if is enough to check availability.

best regards
Phil

 

0
Stef
Telerik team
answered on 07 Jul 2015, 01:46 PM
Hello Phil,

Thank you for the provided details.

After discussion with our development team, it appears the issue with using controlling characters is already logged in our system. Please feel free to log a feature request for controlling the encoding in the Barcode item, as a feature's priority is considered based on the demand.


Since characters are mixed, the Barcode item's mechanism will not be able to switch the encoding as requested. If you need to have such barcode in reports, please consider using third party libraries to generate an image of the barcode. Then you can display it in a report via PictureBox item.


I hope the provided information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Accepted
Phil
Top achievements
Rank 1
answered on 09 Jul 2015, 12:35 PM

Hello Stef,

finally I created a new c# control, so I can mix any subset, and I manage DPI, Module, Size for rendering bar :), and i send result bitmap to Telerik Reporting PictureBox.
an another suggestion,  for your development team, maybe just make access to BarcodeEncodedText propertie like in Telerik.Windows.Controls.Barcode.BarcodeBase, to put our custom encoding and keep your current rendering ?

 thank you for everything

best regards

Phil

0
Stef
Telerik team
answered on 10 Jul 2015, 09:04 AM
Hi Phil,

thank you for your update and I am glad to hear you found a solution.

About the issue with controlling the encoding of the Barcode item, it is logged in our system, but you can raise the priority of the task by logging a request for it in the feedback portal and allowing other community members to vote for it. The same applies to any requests for new features of the Barcode item.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Phil
Top achievements
Rank 1
Answers by
Phil
Top achievements
Rank 1
Stef
Telerik team
Share this question
or