Solved

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

Posted on 2009-04-05
14
718 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 400 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 

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 100 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 100

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 100

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

737 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