Solved

Crystal Report Page Header Suppression

Posted on 2013-02-01
2
2,929 Views
Last Modified: 2013-02-04
I have a report created in VS 2010 that is basically a letter containing information from a database.  The report contains multiple subreports.  Here is how the report is setup:

Report Header (suppressed)
Page Header 
    Company Logo
Details a
    Data from record
Details b
    Data from record
Details c
    Data from record
Details d
    Data from record (suppressed if blank)
Details e
    Data from record
Details f
    Data from record (suppressed if blank)
Details g
    Data from record
    Text
Details h
    Subreport (can contain multiple records with each record on a single line)
Details i
    Subreport (can contain multiple records with records displayed in 3 columns)
Details j
    Text
Details k
    Text
Details l
    Subreport (suppressed based on field in record; set to start on a new page;  can contain multiple records with each record starting on a new page)
Report Footer (suppressed)
Page Footer (suppressed)    

Open in new window


With the way the report is setup, the Company Logo only prints on the first page.  The "letter" portion of the report can be 1 or 2 pages.  If a field in the record contains a certain code, the subreport in Details l prints as separate pages for each record in the subreport.  My problem is now I am asked to make sure the Company Logo appears on the 2nd page of the letter if there is one but not on the pages generated by the Subreport in Details l.  

I have no idea how to accomplish this and would appreciate any help!
0
Comment
Question by:dyarosh
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 38845874
Insert a new section below details K

Add a formula to the report header
WhilePrintingRecords;
Global BooleanVar SuppressPageHeader := False;
""

In the NEW details l add a formula
WhilePrintingRecords;
Global BooleanVar SuppressPageHeader;
SuppressPageHeader := True;
""

In the SECTION EXPERT
Select the PAGE HEADER
Click the formula button to the right of SUPPRESS
WhilePrintingRecords;
Global BooleanVar SuppressPageHeader;
SuppressPageHeader

mlmcc
0
 

Author Closing Comment

by:dyarosh
ID: 38851684
You are AWESOME!!! Thank you!!!
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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