Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Viewer and Barcodes

Status
Not open for further replies.

sgoodman7

Programmer
May 9, 2003
11
US
Crystal 8.5.

I am running into difficulty accessing a report which has a barcode (and the corresponding barcode formulas on it) thru the Crystal Report viewer. I can run and access the report fine thru Crystal, but when I try to schedule it thru e-Portfolio, and then view it as a Crystal Report thru the viewer, I get a formula error. The report runs successfully thru ePortfolio – it just seems to error out on the viewer. I have the barcode software and fonts installed locally, and on the servers. I also tried it on BOEXI/Crystal 11, and it also errors out on the formula.

Any suggestions would be greatly appreciated.
Thanks.
 
Here is the formula:

IDAutomationFontEncoderI2of5 ({@bc_barcode_exit_camera_elements}).

The function does exist in the Additional Functions list in the Crystal Formula editor and therefore parses fine and provides the correct barcode in Crystal Reports.

@bc_barcode_exit_camera_elements:

if {@bc_barcode_envelope_counter} < 10 then
"00000" + ToText({@bc_barcode_envelope_counter},0,"") else
if {@bc_barcode_envelope_counter} < 100 and {@bc_barcode_envelope_counter} >= 10 then
"0000" +ToText({@bc_barcode_envelope_counter},0,"") else
if {@bc_barcode_envelope_counter} < 1000 and {@bc_barcode_envelope_counter} >= 100 then
"000" + ToText({@bc_barcode_envelope_counter},0,"") else
if {@bc_barcode_envelope_counter} < 10000 and {@bc_barcode_envelope_counter} >= 1000 then
"00" + ToText({@bc_barcode_envelope_counter},0,"") else
if {@bc_barcode_envelope_counter} < 100000 and {@bc_barcode_envelope_counter} >= 10000 then
"0" + ToText({@bc_barcode_envelope_counter},0,"") else
if {@bc_barcode_envelope_counter} >= 100000 then
ToText({@bc_barcode_envelope_counter},0,"")

@bc_barcode_envelope_counter:
GroupNumber
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top