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: 

Need a Label Template for Smartforms

Former Member
0 Kudos

I'm trying to create a generic label program in smartforms. The concept would be to pass an internal table into the smartform that has all the names and addresses and an itemcode that indicates which format of labels to use (3 x 10, 3 x 8, etc). I would have multiple templates based on the itemcode passed.

My issue is I'm trying to use a template and the labels are coming out top-down in the left-most column then stopping. How can I get it to wrap to the next column and continue?

My format is Loop/Template/Text. I only have 1 row defined in the template. Style is IDWTCERTSTYLE.

Thanks

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

My idea is to print the labels from LEFT TO RIGHT and then TOP to BOTTOM...

What you are doing is you are tryig to print TOP to BOTTOM and then LEFT to RIGHT....

LEFT to RIGHT and TOP to BOTTOM is easy to control...

like:

Define 4 columns in your one row...

Assign each cell a text..

Assign some condition so at a time only one cell will be executed... like

I_mod = l_Cnt mod 4.

l_div = l_cnt div 4.

Use this conditions to control your text...

Regards,

Naimesh Patel

0 Kudos

Can you assign commands to the individual cells of a template? To do that, sounds like I need a table instead. Was hoping to use template since the labels are fixed format.

I'm new to both tables and templates.

Thanks