Conditional Printing Of Gs1-128 Having Multiple Ai Codes フォローする

0
Avatar
Legacy Poster

 
How to Achieve conditional printing of GS1-128 having multiple AI codes .
 
Situation:
I have multiple (4) GS1-128(With three AI's) barcodes on a label template
I may need not to print all always.
may be 1/2/3 at a time on to a label out of 4 which i have designed on a .btw template (attached).
 
I am providing each AI (Application Identifier) data with a separate Data Source e,g,
 
(02)<GTIN>(10)<LOT>(37)<QTY>  e.g.   (02)12345678901234(10)33333333(37)55
I am getting data for GTIN, LOT and Quantity through individual data sources.

1 コメント

0
Avatar
Legacy Poster
コメントアクション Permalink

Following to the above problem, I have managed to write script under Label Format options->VB Scripting -> OnNewRecord as:
 
 
If GTIN_CODE > 0 Then
    Format.Objects("Bar Code 1").PrintVisibility = True
Else
    Format.Objects("Bar Code 1").PrintVisibility = False
End If
 
If GTIN_CODE1 > 0 Then
    Format.Objects("Bar Code 2").PrintVisibility = True
Else
    Format.Objects("Bar Code 2").PrintVisibility = False
End If
 
If GTIN_CODE2 > 0 Then
    Format.Objects("Bar Code 3").PrintVisibility = True
Else
    Format.Objects("Bar Code 3").PrintVisibility = False
End If
 
If GTIN_CODE3 > 0 Then
    Format.Objects("Bar Code 4").PrintVisibility = True
Else
    Format.Objects("Bar Code 4").PrintVisibility = False
End If

 
I have tried the following option as well: 

Dim Notice
Set Notice = Format.Objects("Bar Code 1")
If GTIN_CODE< 0 Then
    Notice.TextColor = btColor.White
    Format.Objects("Bar Code 1").PrintVisibility = False
    GTIN_CODE = null
 
GTIN_CODE1/2/3 is numeric here.

 

GTIN_CODE1/2/3 are the column names returned by the procedure mentioned in a text and bidden with a data source.
 But its still not  working,  

please assist me regarding this conditional printing.

サインインしてコメントを残してください。