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

Export Barcode in PDF

5 Answers 339 Views
PDF Export
This is a migrated thread and some comments may be shown as answers.
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Benedikt asked on 20 Jan 2020, 03:04 PM

Hey,

I tried to export a barcode in my PDF with the npm Module ngx-barcode. This didnt work at at all. Is there a way to do this in Angular 2+?

I saw some documentation to do it with jQuery and the barcode builder from Telerik, but not with Angular. 

Thanks for the help. 

5 Answers, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 22 Jan 2020, 08:56 AM

Hi Benedikt,

Indeed, at the moment there isn't a dedicated Barcode component available in the Kendo UI for Angular suite.

However any Kendo UI for jQuery widget can be integrated within an Angular project. Please check the following article demonstrating a guideline of this process:

https://www.telerik.com/kendo-angular-ui/components/framework/kendo-jquery/

I hope this helps. Please let me know in case further assistance is required for this case.

Regards,
Svetlin
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Svet
Telerik team
answered on 22 Jan 2020, 09:04 AM

Hi Benedikt,

I have scaffold the following example demonstrating how bar code can be exported to PDF using the suggested approach:

https://stackblitz.com/edit/angular-wbatvh?file=src%2Fapp%2Fhello.component.ts

I hope this helps.

Regards,
Svetlin
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
answered on 23 Jan 2020, 01:13 PM

Hi Svetlin,

thank you for the example. But sadly when i try to implement it to my code, it doesnt work. 

The fuction ".kendoBarcode" gets me the error you can see in den attached file. 

I tried it with the example value of "12345". 

Do you have an idea, what's the problem?

0
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
answered on 27 Jan 2020, 07:12 AM

I found an other solution, building the barcode with barcode font.

0
Accepted
Svet
Telerik team
answered on 27 Jan 2020, 09:14 AM

Hi Benedikt,

I am glad that you managed to move forward with this case and thank you for the provided screenshot demonstrating the error.

It seems to be caused by the combination of the used encoding and value. Please check the following article on this topic:

https://docs.telerik.com/kendo-ui/controls/barcodes/barcode/encodings

I would like to add, that if you have any further questions related to the jQuery BarCode component I would recommend opening a private ticket about the Kendo UI for jQuery BarCode control. That will ensure that the Kendo jQuery team will answer any further questions with the most competence and relevance about the specific requirement. Thank you.

Regards,
Svetlin
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
PDF Export
Asked by
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Svet
Telerik team
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or