Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing labels for more than one page

Status
Not open for further replies.

TheShookster

Programmer
Apr 7, 2005
18
CA
I have a simple problem but it seems that it takes me forever to solve it.
I created a report to print labels. I am passing an input from the user that says the number of labels he/she would like to print.I am using the 'Format with multipile columns' option to print 2 labels by detail.
The looping is working just fine for one page, but whenever it exceeds one page, it is dropping one label.
Ex: if the input for labels is 20 and exceeed one page, it prints 19 labels.
I am using Crystal 8.5, Windows XP, SP2.
 
What are you doing with this input from the user?

Show the formulas used and where they are.

-k
 
synapsevampire thanks,
From the application than I am running, the user is passing the number of labels he/she would like to print.
In Crystal I get this parameter and convert it to a number.
numberVar noL := ToNumber ({?noLabels});

At the beginning of the form, I declared a global counter:
Global NumberVar Counter;
Counter := 0;

In Details, inside the supress button, I put:
Global numberVar Counter;
Counter := Counter + 1;
if Counter <= {@integer} then
false
else
true;

 
How does this create additional labels???

Are you creating a table on the fly with the proper number of rows for that label, or?

One way we handled this from apps was to build out the number of rows required and then attach thoise rows as the recorset and print, that way there's nothing to maintain in the report, it's all handled by code.

-k
 
synapsevampire thanks,
I already created the table on the fly... and I used the method of counting rows...
The report is working fine if I don't exceed one page.
ex:If I were to choose 5 labels, it will print 5 labels just fine. But, if I were to print 21 labels and it exceed one page, it will print only 20.
 
If you create the right amount of rows to begin with, why do you need to suppress anything?

-k
 
BecauseI am printing 2 labels in a row, so each row is counted as 2. But what if I would like to print odd number of labels.
That was the reason why I used a counter that if it will exceed the noLabel passed, it will supress it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top