Application Development 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: 

ZPL: write in next line

Former Member
0 Kudos
3,857

Hi

in my ZPL code i have defined it as below in scripts.

value for this parameter is having more than what the label can fit into.

is there any possility to write in the next line if length of variable length exceeds the available space?

i prefer ZPL commands than script commands. hope i am clear.

<b>Place holder:</b>

^FT464,176

A0N,28,39FN31^FS

<b>variable:</b>

FN31FD&ADRS_PRINT_WE-LINE2&^FS

1 ACCEPTED SOLUTION

Former Member
0 Kudos
1,011

hi Srini,

in ZPL there is no command to breakup the text you want to write based on its length. You have to break it into 2 or 3 variables as per the length and then you can write it using that 2 or more ^FD commands.

Hope this helps.

Regards,

Richa

3 REPLIES 3

Former Member
0 Kudos
1,011

Hai Srini,

There <b>freely available softwares</b> on the net which support nearly to your requirement.

You can have then by clicking the below link:

http://www.bestvistadownloads.com/download-ci-commands-software.html

Coming to declaration u have two ways of suggessions:

<b>Way 1:</b>

If you have declared the parameter in your print program as below:

PARAMETERS:

P_VAL(72) TYPE C.

Only 45 length space is visible to you but you can enter 72 chars.

<b>Way 2:</b>

Declare one more variable and then concatenate them and then use your ZPL commands to capture the value.

Example:

PARAMETERS:

P_VALUE1(30) TYPE C,

P_VALUE2(30) TYPE C,

P_VALUE1(60) TYPE C.

After getting the P_VALUE1 P_VALUE2 valies,

<b>CONCATENATE P_VALUE1 P_VALUE1(30) INTO P_VALUE1.</b>

Hope his helps you a lot.

<b>Reward points if it helps you.</b>

Regds,

Rama chary.Pammi

Former Member
0 Kudos
1,012

hi Srini,

in ZPL there is no command to breakup the text you want to write based on its length. You have to break it into 2 or 3 variables as per the length and then you can write it using that 2 or more ^FD commands.

Hope this helps.

Regards,

Richa

Former Member
0 Kudos
1,011

just decreased the font size so that it will fit into the space available. convinced the user to accept for it.