Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8676

Crystal Reports 2013 - Code 39 Barcode

$
0
0

I was hoping someone might be able to help me getting the Code 39 function working to convert data to a barcode in Crystal Reports 2013.

Seems to be the work around from a UFL 'u25azalea.dll' error I was receiving.

 

I’m following the directions found here: http://www.azalea.com/crystal-reports-custom-functions/code-39/

 

I created a new function named “Barcode” with the func_Code-39_Full code:

Function (StringVar input)

Local StringVar temp;

Local StringVar chunk;

Local NumberVar i;

 

For i := 1 To Length(input) Do

(

chunk := input[i];

Select Asc (chunk)

Case 0:

temp := temp + "%U"

Case 1 To 26:

temp := temp + "$" + Chr(Asc(chunk) + 64)

Case 27 To 31:

temp := temp + "%" + Chr(Asc(chunk) + 38)

Case 32:

temp := temp + "_"

Case 33 To 44:

temp := temp + "/" + Chr(Asc(chunk) + 32)

Case 45 To 46:

temp := temp + chunk

Case 47:

temp := temp + "/O"

Case 48 To 57:

temp := temp + chunk

Case 58:

temp := temp + "/Z"

Case 59 To 63:

temp := temp + "%" + Chr(Asc(chunk) + 11)

Case 64:

temp := temp + "%V"

Case 65 To 90:

temp := temp + chunk

Case 91 To 95:

temp := temp + "%" + Chr(Asc(chunk) - 16)

Case 96:

temp := temp + "%W"

Case 97 To 122:

temp := temp + "+" + Chr(Asc(chunk) - 32)

Case 123 To 126:

temp := temp + "%" + Chr(Asc(chunk) - 43)

Case 127:

temp := temp + "%T";

);

 

"*" + temp + "*"

 

Then I created a new Formula named “TripNumBarcode” and dragged the Functions\CustomFunctions\Barcode (input) function into the Formula Editor window which looked like:

Barcode ()

 

I then dragged another Formula I use to calculate the trip number into this function:

Barcode ({@TripNumber})

 

But I’m getting an error of

A string is required here.

 

Any advice?


Viewing all articles
Browse latest Browse all 8676

Trending Articles