cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports .NET and bar codes

Former Member
0 Kudos

I am using Visual Studio 2005 with Crystal Reports for .NET. I have a text field using a simple bar code font (Code 128) that displays fine in preview mode and when exported to PDF. When I attempt to print the report, however, it gives me the raw text of the underlying Code 128 symbology (tested on 2 different printers).

Anyone have any ideas on how to get this print properly?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Bar code fonts are well supported by CR so not sure why you are running into this issue. Here are some ideas:

Have you tried to view the report in the CrystalReportViewer control? If so, does it render correctly in the viewer?

As another test, can you select that font from the VS Properties view? If not, this could be the issue because there are certain types of fonts that are supported by the .NET Framework and CR, at runtime, is limted to these fonts. The reason why the preview and export work is because the preview is actually COM-based and the export doesn't use .NET code to generate the PDF.

Can you print that bar code successfully from another application (ie: MS word)? I'm thinking maybe the printer doesn't support the font or type of font.

If this still doesn't help, I recommend contacting the suppport team to help troubleshoot this issue.

-MJ

Answers (0)