Reputation: 2937
I have a Crystal Report 8.5 file, that I need to export to PDF.
That report contains a field that I need to represent as Bar Code. To achieve that I use a TrueType font.
How can I assure that the codebar is visible on the PDF even if the computer doesn't have the font installed?
Upvotes: 4
Views: 8574
Reputation: 2715
If you do not want to include a font, you can generate an image and call it via HTTP.
The barcode below is generated using an online barcode generator courtesy of WASP:
http://www.waspbarcode.com/services/waspbarcode/barcodegen.ashx?symbology=Code128&code=font_missing_31301980
Steps for Report:
"http://www.waspbarcode.com/services/waspbarcode/barcodegen.ashx?symbology=Code128&code=" + {table.barcode_field}
Take care to use your own online barcode generator. WASP service may not work if people starting abusing the service and generate too many barcodes for reports.
You can also generate Code 3 of 9 barcodes using HTML only, but I haven't tried in Crystal Report formula yet.
Upvotes: 3
Reputation: 5798
I had done this, so whenever you want the custom font style in crystal report, you have to install that font in server machine where your application host.
So if font is available, then report will map the font style and display as normal font.
There is one rule when you want other than standard font : as you installed font in your local machine to check pdf, the same process you will done on to the application server where your application are host or simply say the location (means server) / computer of your crystal report's physical files.
To show bar-code value in your crystal report, you just need to choose font in the format text of controls. Reports automatically display that, if it find the font, other wise gives error of font missing or not show properly bar-code section.
Upvotes: 0
Reputation: 1115
You must have the Bar Code font installed on the machine that is rendering the report if you are exporting to PDF because Crystal Reports does not embed fonts due to licensing issues.
However, you can print to a PDF printer, and select the option to embed the fonts into the file.
There are issues embedding fonts with 8.5 and SAP is not going to be very helpful as it is such an old version.
Upvotes: 0
Reputation: 1182
If you use a barcode image library, such as this barcode 3 of 9 image creating library for Crystal Reports, you will need not install font to each computers.
Upvotes: 0
Reputation: 90243
You have to embed the barcode font into the PDF!
Very likely the following has happened:
To rectify that situation, you have two options:
Upvotes: 0