Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


How do I get a barcode font to display in Crystal Reports pdf out of VS2008?

Posted on 2009-07-14
Medium Priority
Last Modified: 2013-11-26
I am designing a report using the Visual Studio 2008 embedded Crystal Reports.  In this report there are several items that must be displayed using barcodes.  The report output format must be pdf.  The report runs OK but in the pdf file the barcode font does not render.  It merely displays the numerical values in normal display format.  If you do a report preview the barcode font displays OK, but not in the pdf.  I have tried several different barcode fonts, all with the same result.  I have installed the fonts each time both on the local client machine and on the development and runtime server.  I see other people have reported this issue, but I did not see any satisfactory solution short of purchasing a complete barcode add-on package.  That seems to be a bit of overkill for what I want to do.  
Question by:phildtm
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 15

Expert Comment

ID: 24858461
Just use iTextsharp (a free PDF library) to load the pdf generated by CR and add the barcode to it. Visit http://itextsharp.sourceforge.net/ for more information on iTextsharp

Expert Comment

ID: 24858912
You must register the barcode font with Adobe Reader.

Author Comment

ID: 24874780
mohan sekar:  I will try the open source to see if it allows me to incorporate the barcode font in a way that will make it viewable when the pdf is opened.  Thanks for the tip.
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!


Author Comment

ID: 24874788
harkerad:  I could not find anything on registering a font with Adobe Reader, only on embedding a font into a pdf.  Is there a separate process to register a font with the Reader, or did you mean embedding?

Expert Comment

ID: 24875712
Place your barcode fonts in the Acrobat local CIDFont or Font folder of the resource folder.
for example:  C:\Program Files\Adobe\Acrobat 9.0\Resource\CIDFont

Accepted Solution

phildtm earned 0 total points
ID: 24881227
What we finally decided to do was to purchase the ID Automation Native Barcode Generator for Crystal Reports.  The suggestion to place the barcode font in the Adobe font folder did not work.  The iTextSharp methodology might have some promise but in the interest of time we've gone with the ID Automation.  I did test their demo and it worked fine to produce barcodes in pdf files from Crystal.  The other reason we're going with this approach is that the barcoded documents need to be readable on any device that can read a pdf file, even ones that have no barcode fonts installed.
Thanks to those who provided the tips for their time.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe A recent question here at Experts Exchange piqued my interest, so I decided to provide a thorough solution and publ…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question