Solved

How to repeat a label in report header in Crystal Reports?

Posted on 2011-09-19
5
411 Views
Last Modified: 2012-05-12
Hi,

  I have a subreport, which has Report Header a, Report Header b,Report Header c and Report Header d.
  There is this label in Report Header d, which is kinda like a heading line to the Report Header d.
   This heading line  says "Allegations Pertaining to"
  Now, there are times when the report header d goes into next page. If it does, the next page, should have a header line "Allegations pertaining to (Contd.)".

   How to dio this? Please help.
0
Comment
Question by:pvsbandi
[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
  • 2
  • 2
5 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 36562686
Not sure if this works with a subreport

You can have the group headers repeat on each new page.
You can alo use the InRepeatedGroupHeader to suppress the continued

Add the (contd.) as its own textbox
Right click it
Click FORMAT OBJECT
Click the COMMON TAB
Click the FORMULA BUTTON to the right of SUPPRESS
Not InRepeatedGroupHeader

mlmcc
0
 

Author Comment

by:pvsbandi
ID: 36568188
Thanks! But doesn't work for me..
  Basically, if there is a header to a section and the section details are carried onto subsequent pages, then we need to repeat the header with a "Contd.", appended to it.

  But i'm not able to even display the header, if the section is going to into next page.
  any other suggestions? Please advise.
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 250 total points
ID: 36570289
You will have to move that header to the group header.

If you just need it from the main report you can group on a formula like

WhileReadingRecords;
"A"

or

WhileReadingRecords;
If TRUE then
  "A"
Else
  "B"

put the header informationin the group header and use the repeata group header on each page

mlmcc
0
 
LVL 35

Assisted Solution

by:James0628
James0628 earned 250 total points
ID: 36572679
CR 10 will not let you group on a formula that just produces a literal value like that.  That formula is just not listed when you try to create the group.  CR XI might be different.  If you have the same problem in CR XI, you just need to have the formula reference one of your fields.  For example, something like:

if {field} = {field} then
  "A"

 Then you should be able to group on that formula.

 If the field could ever be null, change the formula to:

if IsNull ({field}) or {field} = {field} then
  "A"


 James
0
 

Author Closing Comment

by:pvsbandi
ID: 36580243
Thank You!
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

687 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