Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Display page for each "Billed" person row in database in Crystal Report.

Posted on 2009-04-05
14
Medium Priority
?
729 Views
Last Modified: 2012-05-06
When the "Billed" field has two rows in database for one customer I need to display one page for each  "Billed" row in my Crystal Report for that customer.  
Do I do this as a condition in the Crystal Report?  

Thanks in advance.
0
Comment
Question by:donnie91910
[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
  • 3
  • 2
  • +1
14 Comments
 
LVL 6

Accepted Solution

by:
agandau earned 1600 total points
ID: 24077361
In the report design, if you right click on the section that you want broken on pages (it might read something like "GH1" for "Group Header #1") you can select from the menu "Section Expert".  In there are options for things like "New Page Before" and "New Page After".

Is that what you're looking for?

I should have asked what version of Crystal Reports you're using.
0
 

Author Comment

by:donnie91910
ID: 24079019
Version 8.5
0
 
LVL 6

Expert Comment

by:agandau
ID: 24080036
Ok, I don't think that changes the answer, based at least on how I understand your question.  Did the Section Expert have the functionality you need?
0
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

 

Author Comment

by:donnie91910
ID: 24080819
I tried the Section Expert and that not do what I wanted.  When I run the stored procedure it only returns one record and one Billed name where it should return two.  Not sure why.
0
 
LVL 6

Expert Comment

by:agandau
ID: 24080960
I'm not sure I'm following you.  Maybe you could include some sample output.  Both what you're getting and what you'd expect it to look like.
0
 

Author Comment

by:donnie91910
ID: 24082081
The concept is to display on seperate pages the name of the person being billed.  Sometims there can be multiple people being billed for the same customer.  I want to display a seperate page for each of the people that are billed for that customer.
Like this:
On page 1:
Customer: Lucy Smith
Billed:  Eric Jones
Amount: 100.00

On page 2:
Customer: Lucy Smith
Billed:  Mike Thomas
Amount: 300.00

My stored procedure displays these two rows, but I can't make the report display two pages.

I hope this makes sense.
0
 

Author Comment

by:donnie91910
ID: 24082827
Is it possible to do a New_Page_After where record count is greater than 1?
0
 
LVL 35

Assisted Solution

by:James0628
James0628 earned 400 total points
ID: 24083136
To use agandau's first suggestion (using one of the "new page" options), the report will have to be grouped on "Customer" and on "Billed".  Then you would, for example, go to the group footer section for the "Billed" group and set the "new page after" option, so you'd get a new page after each person (Billed).

 James
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 24083604
Where are you displaying the data?

What is the SQL you are using?

mlmcc
0
 

Author Comment

by:donnie91910
ID: 24091090
James,
That seem to have worked.  But the Report Header is grayed on the New Page Before and is not allowing me to change it.  Any ideas?
ReportHeaderGrayedonNew-Page-Bef.jpg
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 24093968
The report header prints on the first page so you can have a new page before it.

mlmcc
0
 

Author Comment

by:donnie91910
ID: 24094001
Actually, I had to create another group and add the  Page header information to the group so that it would print on every page.

Thanks.
0
 

Author Closing Comment

by:donnie91910
ID: 31566903
Thanks all.
0
 
LVL 35

Expert Comment

by:James0628
ID: 24094966
Just to be clear, what mlmcc meant to say was:

 The report header prints on the first page so you can NOT have a new page before it.


 More specifically, the report header sections print once, at the very beginning of the report, so you can't put a new page before them.  If you were trying to get something to print on every page, the report header wouldn't have helped anyway.

 If you want something to print at the top of each page, that would normally be done in the page header, but using "Repeat Group Header On Each Page" is also an option.

 Anyway, you're welcome.  Glad I could help.

 James
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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 …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

610 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