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: 

Smartform label printing problem

Former Member
0 Kudos

Hi all,

I want to print labels...

I defined 4 windows on the FIRST page. That's it. No second page.

1 is a main window and the 3 others are secundary windows. I found an example where that was the case.

At the end of the MAIN window, I included a command line saying GO TO NEW PAGE: FIRST.

This works correct if I do not need more then 7 labels. 4 labels are printed on the first page and 3 on the second page in this case.

Apparently, the program loops 7 times and then displays the print.

It always loops 7 times, no matter what I try.

Anyone a clue?

Thanks a lot!

Dimitri

4 REPLIES 4

Former Member
0 Kudos

Hi!

Remove this command line from your smartform: GO TO NEW PAGE: FIRST.

Instead of this, simply do the following:

- select the "FIRST" page under the "pages and windows" node and double click on it.

- select general attributes tab

- Next to the "next page" there is a listbox. Choose the "FIRST" from it. This will call the FIRST page again, if its MAIN window is full.

Regards

Tamá

0 Kudos

Hi Tamás,

Now it's even worse. It only prints 1 page. That's it.

Kind regards

Dimitri

Former Member
0 Kudos

Hi,

Create one page with name FIRST. Provide the next page is "FIRST' for that.

Create a Main window>Create a loop with internal table to display the data of Label>Create a Template and arrange it as per your requirement. this general Approach for any label.

Don't go for Command node here.

0 Kudos

Hi,

That's the problem.

My data resides in structure LEDLV_DELNOTE.

Within that structure, 2 separate structures are used to move the data to the smartform.

So I can only loop over 1 structure.

So 1 line in the structure does not match 1 label in my case.

I sill wonder why the program loops 7 times. I want to understand that first.

Thanks

Dimitri