Crystal Reports 11 - How to print different data on multiple pages
It's been a while since I've used Crystal Reports, but you can setup your .RPT to have three detail sections (A/B/C) and have B and C "print new page before". That way each detail will be on three separate sections.
You shouldn't need to do anything crazy with custom formulas. All you need to do is display each piece of data three times, one on each page, with each page being slightly different.
(Of course you could use a header and just put the changing data in the details section... but that will take more time to get right then just repeating the required data in each data section.)
Confirmed
- Open your report
- Right-Click on the Details secton
- Select "Insert Section Below"
- Repeat steps 2 & 3 twice
- Confirm that you see three Detail Sections
- Use "Section Expert" (or Visual Studio Properties) for sections A & B and select "New Page After". (If using Section Expert, be sure you are on the Paging tab.)
- Create the desired content in each Detail Section.
- You probably want to Suppress all other sections, including Report/Page Headers & Footers.
.RPT Detail Section Setup
Section Expert
tlascek
Updated on November 29, 2020Comments
-
tlascek over 3 years
I have a shipping label that needs to print on a Dymo Label printer with slightly different data on each of 3 pages. Can this be done with just one .rpt so the users only need to print one report, rather than three?
-
tlascek over 13 yearsThanks Mark. When you say "...when it changes" do you mean the data change? Just so we are clear, all three labels would need to print all at once every time.
-
Mark SQLDev over 13 yearsFor instance, if you set up a column named Grouper and put in the values a, b, and c in the right records, then you could make the report start a new page when the value of Grouper changes.
-
beach over 13 yearsUnless I misunderstood the requirements, I don't see why not. The OP wanted three labels printed for each .RPT run. Each page is a label. So there should be 3 labels printed each time the .RPT executes. (This is assuming that CR will successfully tell the printer to page feed after each page.)
-
Dog Ears over 13 yearsI asumed dymo labels were similar to Avery labels, I'm not sure if that was correct - hopefully my solution will be useful in that Avery label scenario.
-
beach over 13 yearsIf they are just like Avery labels, then there is no need to use the "New Page After" options. All you need to do is create the extra detail sections and align them to the actual die-cut labels.
-
Dog Ears over 13 yearsIf, as an example, you had avery labels with five rows and two colums, but you wanted to print 3 different labels, would my approch be apropriate? :o)
-
tlascek over 13 yearsYou're correct, Dymo labels do not require the "New Page After" option enabled. Simply creating additional Detail sections did the trick! I knew it had to be something quick and easy; seemed like a routine sort of operation to have not been addressed in some way by the software.