Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Print variable with ZPL II in smartforms

Former Member
0 Likes
1,571

Hi all,

How can I print a variable in smartforms with ZPL II code?

I use commant in smartforms with ^FV but it could not be written to the label.

ZPL II Command String is : XX is a variable that is stored a value in Programs Line before ZPL II Command.

S_LZPL_SETUP 'XAFO50,50GB0,203,5FSFWBFO115, 75A0,25,20FVXXFSXZ'

Best regards,

Munur

Hi all,

How can I print a variable in smartforms with ZPL II code?

I use commant in smartforms with ^FV but it could not be written to the label.

ZPL II Command String is : XX is a variable that is stored a value in Programs Line before ZPL II Command.

S_LZPL_SETUP 'XAFO50,50GB0,203,5FSFWBFO115, 75A0,25,20FVXXFSXZ'

Best regards,

Munur

3 REPLIES 3
Read only

Former Member
0 Likes
930

Problem was solved.

Thanks.

Munur

Read only

0 Likes
930

and the solution is?

Thanks.

Read only

0 Likes
930

Hi Jack,

1.

data : ZZPL2 type string.
clear : zsaat,ztarih.
concatenate ZZCZEIT(2) ':' ZZCZEIT+2(2) ':' ZZCZEIT+4(2)
      
into ZSAAT.
condense ZSAAT no-gaps.
concatenate ZZCDATE+6(2) '.' ZZCDATE+4(2) '.' ZZCDATE(4)
      
into ZTARIH.
condense ZTARIH no-gaps.


concatenate '^BY4,2.0^FO20,50^B7N,4,1,1,0,N^FD'

              ZZKDMAT
           
'^FS'
           
'^FO490,15^GB0,250,5^FS'  
           
'^FWB^FO500,60^A0,25,20^FD'
            ZSAAT                    
           
'^FS'                      
           
'^FWB^FO525,50^A0,25,20^FD'
            ZTARIH
           
'^FS'                    
           
'^FWN^A0,25,20^FD'
           
'^FS'                      
      
into ZZPL2.

2. In the command :

S_LZPL_SETUP           ZZPL2

That's all.

Best regards,

Munur