Solved

Need to tell Crystal Reports XI how many labels to print and have it print  No. x of y on each label

Posted on 2006-10-24
7
920 Views
Last Modified: 2008-01-09
We want to print a ship mark label using crystal XI (because it's embedded in our ERP and prints our other labels).  The ship mark label is static - it pulls nothing from the database.  Likewise, the number of labels to print is not dependent on anything in the database but rather the shipping conditions such as destination, customer request...    

When the report is printed it needs to prompt the user for the number of labels to print.  The labels must number themselves.  For example, if we are printing 50, the labels must print 1 of 50 on the first label, 2 of 50 on the second and so forth.  How can we do this?

(We are printing 2 labels per page, 8.5"X5.5")


Thanks
 
0
Comment
Question by:tekconsulting
7 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 250 total points
ID: 17797167
Hi tekconsulting,

There are some label samples here:
http://support.businessobjects.com/communityCS/FilesAndUpdates/cr9_label_samples.zip.asp 

This includes an example which numbers labels as 1/6 2/6 etc


Pete
0
 
LVL 22

Expert Comment

by:Ido Millet
ID: 17798279
You can use a parameter in combination with the approach I outlined in: http://www.tek-tips.com/faqs.cfm?fid=3226

How do Duplicate Records based on a Quantity Field?
faq149-3226
Posted: 24 Feb 03 (Edited 19 Apr 05)

Problem:
A typical situation is where a number of label copies  must be printed for each order according to the {quantity} field in each order record.

Solution:
Create a REPEATER table with a single column (How_Many) that looks like this:

How_Many
1
2
3
4
5
6
etc.

Now, in your report, add the Repeater Table and add a join
condition of:
CODE
Order.quantity >= Repeater.How_Many

If the ">=" join option is not available, remove the join to the REPEATER table and create this condition in the Record Selection condition:
CODE
{Order.quantity} >= {Repeater.How_Many}

If you are restricted to using an equal join, you can also modify the repeater table to include N records for each quantity N:
1
2
2
3
3
3
...

This would cause each order to be duplicated as many times as the value of {Order.quantity}.  

Cheers,
- Ido
0
 

Author Comment

by:tekconsulting
ID: 17798476
Thanks Pete,

The Creating Duplicate Labels sample seems to have everything we need but it uses a group to set up the parameter and generate the required number of labels.  Since our label isn't tied to the database, is there a way to specify the number to print without using a group.  Or is there a way to make a group that does not need to interact with the database.

Thanks again

0
 

Author Comment

by:tekconsulting
ID: 17799299
As mentioned in my original question, the label quantity is not determined by anything in the database nor is it consistent enough to develop a rule.  It must allow the user to enter the number to print and then print two labels per sheet with the x of y printed at the bottom of each label.  Using information from the sample in Pete's answer I am able to generate a label that meets the requirements but only prints one label.  That is, if I prompt it to print 10 labels, it prints one label with 1 of 10 at the bottom.  This is probably because the number formula is based on the group accessing the database.  

This is something that would be easy to do in Word if I weren't trying to keep everything inside the ERP.  Is there no way in Crystal for the user to instruct a label report how many labels to print?  Keep in mind they are independent of the database.

Thanks,
0
 
LVL 34

Expert Comment

by:James0628
ID: 17799467
If all of the label information is in the report (and not coming from an outside source), couldn't you still add some kind of table or other file as a datasource?  It could be a simple text or excel file, although those can present certain limitations (eg. only one process allowed to acces the file at any given time).  Then you would have the label in the detail section and it would be printed once for each record that was read.  If your table/file contained a line number in each row, you could compare that with your label count parameter in the record selection.  Otherwise, you could compare the parameter with CR's RecordNumber function in a detail section suppression formula.  Not as efficient, but it works.

 James
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C# Crystal Reports Formula 6 79
Use data from .txt file into Crystal reports 9 46
Crystal Report Date Range Parameters 2 50
Crystal Reports last day of month 2 44
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now