Solved

Copy a Group Header in Master Report to Report Header in Sub Report

Posted on 2013-10-28
3
612 Views
Last Modified: 2013-10-28
Data is from  different databases...I have several groups in the Main Report.. The subreport is residing in the Group Footer of the Main Report...

I need this "copied Group Header" to only show where there is data on the SubReport in its Report Header

Hopefully this makes sense
0
Comment
Question by:Mikeyman_01
  • 2
3 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39605895
You can pass all the information used to create the group header to the subreport the show it in the subreport report header or a group header

TO share data with the subreport create 3 formulas

In the main report add a formula to the report header
WhilePrintingRecords;
Shared NumberVar MyValue;
""

Open in new window


IN the main report group header
WhilePrintingRecords;
Shared NumberVar MyValue;
MyValue := {SomeDatabase Field};
""

Open in new window


In the subreport where you want to display the value
WhilePrintingRecords;
Shared NumberVar MyValue;
MyValue 

Open in new window


Similarly for all values.  In the main report you can declare and set values to multiple variables

WhilePrintingRecords;
Shared NumberVar MyValue;
Shared DateTimeVar MyDateTime;
MyValue  := {SomeDatabase Field};
MyDateTime := {A DateTIme Field};
""

Open in new window


mlmcc
0
 

Author Comment

by:Mikeyman_01
ID: 39607080
So I cant do this on an entire section??  I have to do it field by field
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39607614
What do you mean an entire section?

Does the subreport use the same data source?

mlmcc
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

786 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