Solved

Crystal Report Page Header Suppression

Posted on 2013-02-01
2
2,956 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Exporting Crystal report withh dynamic image in C# 5 69
Pull date to Group header 6 31
Crystal Reports 2013 25 46
Cant attach a pdf to a crystal report 3 20
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

839 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