?
Solved

Crystal Report Page Header Suppression

Posted on 2013-02-01
2
Medium Priority
?
3,037 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 101

Accepted Solution

by:
mlmcc earned 2000 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

770 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