Solved

Crystal Report Page Header Suppression

Posted on 2013-02-01
2
2,973 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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