Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IN RDC, WHAT IS THAT SECTION1, SECTION2 THING?

Status
Not open for further replies.

TNN

Programmer
Sep 13, 2000
417
US
I am using the Crystal Reports 9.0 RDC in VB6.0.

When I look at my report in the designer I am seeing my sections labeled like:
Details (DetailSection1)
Page Header (PageHeaderSection1)
and so on. What are these section things???

TNN, Tom



TOM
 
Tom, Crystal uses sections and evaluates things differently in these sections. The report header(RH) appears only at the top of the first page of the report and is the partner section to the report footer (RF) which appears on the bottom of the last page. Page Header (PH) appears at the top of every page and is related to the page footer (PF) which appears on the bottom of every page. Then you can create sub sections (eg PHa and PHb) - these will appear one below the other (Then you can do stuff like suppressing PHa on certain conditions etc). Then you may get a group header (you can group data - Eg put all employees together who started working in the same month and year by grouping by Eg Employee.startmonthyear. You may have several levels of grouping Eg put in a second grouping level (GH2) where you group by the DAY they started working and so on. These sections appear every time this data changes. Inside this is the details which appears for every record.

You have to be careful with the sections and where you try to evaluate data. For example, if you try to write a running total to find the minimum start date, and place this in the report header, you will get nothing returned, since the RH is evaluated first before the data comes through. You can get around such problems TO AN EXTENT by using functions such as WHILEPRINTINGRECORDS and WHILEREADINGRECORDS and using subreports etc but I won't go into that now.
 
Stoffel24,

Why do I see these sections denoted in the RDC but not in crystal apart from the RDC?

In the RDC if details shows a section1 is there a section2? If there is I can't see it.

TNN, Tom


TOM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top