cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Crystal Reports 2020 - Java - Barcode 128 Embedding not working

enricozaninelli
Explorer
0 Likes
1,178

Hi,

I have got a 128 barcode font with embedding license, and I've installed it under C:\Windows\Fonts.

I am able to see the font as avaiable on CR2020 designer, and I can assign it to a text field:

The problem is that it doesn't work at runtime!

The text field is printed with a default font (such as Verdana). I AM NOT ABLE TO EMBED THE FONT when exporting to PDF file (for example)

I am using Crystal Reports for Eclipse as runtime (Crystal Reports Java Project Runtime Library).

Is there a way to make the fonts avaiable to the Java runtime library above mentioned, as to make the embedding work?

Thanks,

Enrico

Accepted Solutions (0)

Answers (1)

Answers (1)

Yogananda
Product and Topic Expert
Product and Topic Expert
0 Likes

enricozaninelli

Unfortunately, there is no direct way to embed barcodes into Crystal Reports 2020 using Java. However, you can use a third-party library such as Barcode4J to generate barcodes and then embed them into your report.

To do this, you will need to create a custom Java class that will generate the barcode and then add it to the report. You can then use the Crystal Reports API to add the barcode to the report.

For more information on how to do this, please refer to the following article:

https://www.crystalreportsbook.com/crystal-reports-barcode-generator-java/