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
977 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 35

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
[NotSupportedException: Not supported within subreports.] 2 89
Pull date to Group header 6 34
free Crystal Report viewer 4 40
Multiple Line Graph in Crystal Report 2013 9 36
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 …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

696 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