Solved

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

Posted on 2011-09-19
5
383 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
  • 2
  • 2
5 Comments
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
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
Comment Utility
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 100

Accepted Solution

by:
mlmcc earned 250 total points
Comment Utility
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 34

Assisted Solution

by:James0628
James0628 earned 250 total points
Comment Utility
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
Comment Utility
Thank You!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now