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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

test 1

Status
Not open for further replies.

TimothyP

Programmer
Aug 6, 2002
135
US
I'm trying to create a Budget report in Crystal Reports 8.5 against a SQL server database.

GH1(Subfund) & GH2(Dept) are displayed in the page header so they are suppressed in the report.

My problem: Since GH3 is stated in the page header, I want GH3 to be suppressed when it's the first instance on a new page.

How do I accomplish this?


PH Budget Report Page:01
1/17/04

SUBFUND : 011 General Fund
DEPT : AD Administration
CHARACTER : 01 Personal Services


CLASS CLASS DESCRIPTION
GH3 CHARACTER : 01 PERSONAL SERVICES (SUPPRESS THIS LINE)
01201 REGULAR SALARIES & WAGES
01203 LONGEVITY AWARDS
02101 FICA MATCH
02110 1.45% MEDICARE MATCH
02200 RETIREMENT CONTRIB
02300 LIFE INS
02301 ACCIDENTAL D&D INS
02302 EMPLOYEE HEALTH INS
02303 LONG-TERM DISABILITY INS
02400 WORKERS COMP
02500 UNEMPLOYMENT COMP

GH3 CHARACTER : 03 OPERATING EXPENSES
03100 EMPLOYEE TRAINING COST-PROF
03101 OTHER-PROF SVC
03401 OTHER-CONTRACTUAL SVC
04000 TRAVEL & PER DIEM
04001 MOTOR POOL RENTAL
04003 MAYOR'S SPECIAL CONTINGENCY
04100 COMMUNICATION SVC
04102 POSTAGE-INSIDE-TRANSPORTATI
04103 POSTAGE-OUTSIDE-TRANSPORTA
04104 POSTAGE-INDIRECT COSTS-TRAN
04502 INTERDEPT-PREMIUM COSTS-INS
04600 REPAIR & MAINT-OUTSIDE
04700 INTERDEPT-GRAPHIC DESIGN & T
04701 COPY SVC
04800 PROMOTIONAL ACTIVITIES
04802 ADVERTISING
04924 PARKING DEPT-INTERDEPT CHAR
05100 OFFICE SUPPLIES-OUTSIDE VEND
05205 TOOLS & MINOR EQUIP
05400 DUES & SUBSCRIPTIONS

PH Budget Report Page:02
1/17/04

SUBFUND : 011 General Fund
DEPT : BC BUSINESS & HOUSING
CHARACTER : 01 Personal Services


CLASS CLASS DESCRIPTION
GH3 CHARACTER : 01 PERSONAL SERVICES (SUPPRESS THIS LINE)
01201 REGULAR SALARIES & WAGES
01202 TERMINAL LEAVE
01203 LONGEVITY AWARDS
01231 RESERVE FOR VACANCIES
01400 OVERTIME
02101 FICA MATCH
02110 1.45% MEDICARE MATCH
02200 RETIREMENT CONTRIB
02300 LIFE INS
02301 ACCIDENTAL D&D INS
02302 EMPLOYEE HEALTH INS
02303 LONG-TERM DISABILITY INS
02400 WORKERS COMP
02500 UNEMPLOYMENT COMP

GH3 CHARACTER : 03 OPERATING EXPENSES
03100 EMPLOYEE TRAINING COST-PROF
03101 OTHER-PROF SVC
03401 OTHER-CONTRACTUAL SVC
03403 TEMP PERSONNEL-CONTRACTUAL
04000 TRAVEL & PER DIEM
04001 MOTOR POOL RENTAL
04002 EMPLOYEES AUTO ALLOWANCE
04003 MAYOR'S SPECIAL CONTINGENCY
04100 COMMUNICATION SVC
04102 POSTAGE-INSIDE-TRANSPORTATI
04103 POSTAGE-OUTSIDE-TRANSPORTA
04104 POSTAGE-INDIRECT COSTS-TRAN
04300 CITY-UTILITY SVC
04301 ELECTRIC-UTILITY SVC
04400 RENT
04502 INTERDEPT-PREMIUM COSTS-INS
04600 REPAIR & MAINT-OUTSIDE
04602 COPIER MAINTENANCE
04700 INTERDEPT-GRAPHIC DESIGN & T
04701 COPY SVC
04800 PROMOTIONAL ACTIVITIES
04802 ADVERTISING
04906 LICENSES, FEES & FINES
04924 PARKING DEPT-INTERDEPT CHAR
05100 OFFICE SUPPLIES-OUTSIDE VEND
05202 UNIFORMS
05204 OTHER-SUPPLIES & MATERIALS
05205 TOOLS & MINOR EQUIP
05400 DUES & SUBSCRIPTIONS

PH Budget Report Page:03
1/17/04

SUBFUND : 011 General Fund
DEPT : CA COMMUNITY AFFAIRS
CHARACTER : 01 Personal Services


CLASS CLASS DESCRIPTION
GH3 CHARACTER : 01 PERSONAL SERVICES (SUPPRESS THIS LINE)
01201 REGULAR SALARIES & WAGES
01203 LONGEVITY AWARDS
01231 RESERVE FOR VACANCIES
02101 FICA MATCH
02110 1.45% MEDICARE MATCH
02200 RETIREMENT CONTRIB
02300 LIFE INS
02301 ACCIDENTAL D&D INS
02302 EMPLOYEE HEALTH INS
02303 LONG-TERM DISABILITY INS
02400 WORKERS COMP
02500 UNEMPLOYMENT COMP

======================
Crystal Reports 8.5
Database: SQL Server
 
hi
click on the format section
select supress and the x2 and enter
"CHARACTER: 01 PERSONAL SERVICES" = true

Durango122
 
But what if the GH3 header on the first page is not CHARACTER: 01 PERSONAL SERVICES ?

you could change your approach and have the result you want

create another section on your GH3

place the Field headers on the second section and the Group field value on the first.


create two formulas

Formula 1 @SuppressorReset
whileprintingrecords;
numbervar suppressor:=0
to be placed on the page header make it invisible

Formula 2 @Suppressor
whileprintingrecords;
numbervar suppressor:=suppressor+1
to be placed on the group header in your case GH3 make this invisible too.

then on section expert
go to group header 3 second section click X-2 the button on the seppress option
and add the following code

whileprintingrecords;
numbervar suppressor > 1




Mo
 
Create two formulas:

//{@reset} to be placed in the PAGE FOOTER:
whileprintingrecords;
numbervar linecnt := 0;

//{@linecnt} to be placed in the GH#3:
whileprintingrecords;
numbervar linecnt := linecnt + 1;

Then go to the section expert->GH#3->suppress->x+2 and enter:

{@linecnt} = 1

This will suppress the first instance of the GH#3 header on the page, so you should have "Keep group together" set, so that the page always starts with GH#3.

-LB
 
Didn't see your post MisterMo. When I tested this in CR XI though, the reset needed to be in the page footer.

-LB
 
Is a slight different approach so the reset is on the top and I am not suppressing the group, just one section.

Mo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top