Conditional Suppression Page Header
My report contains one subreport placed in RFb. The data in the subreport is unrelated to the data in the primary report, so each report requires its own set of column headers. When printed, the subreport requires at least several page. Subreports have no page header section. In my subreport the column headers are placed in the RH section of the subreport, but these headers do not show up after the first page of the subreport. In addition, the headers in the primary report appear in the subreport, though they are inappropriate.
To workaround this problem I placed the primary report headers into PHa and the subreport headers into PHb, both in the Primary report. I want to use conditional formatting (suppression) to control the appearance of these headers WhilePrintingRecords.
The objective is to suppress PHb until the SECOND page of the subreport. (The subreport has a title page, so that MUST be the first section on page 1 of the subreport). PHa is suppressed AFTER the primary report is done. The last section in the primary report is RFa (or is it? See below).
Using Basic syntax I placed the following formula into RFa of the Primary report.
'Determine last page of Primary report.
WhilePrintingRecords
Global nLastPgSec1 As Number
nLastPgSec1 = PageNumber
Formula = nLastPgSec1
However, I have found that the value of nLastPgSec1 increments by one as each page of the subreport is printed. The only way this can occur is if RFa of the primary report is evaluated with each page, even though the subreport is placed in RFb.
I know this is probably difficult to follow without a visual of the design.
Can anyone tell me how to control the conditional formatting to accomplish what I need?
Thanks,
Art
After a night's sleep I saw my problem. The solution was to set the value of nLastPgSec1 by placing it in the DETAILS section of the primary report (not a report footer). The formula is:
WhilePrintingRecords
Global nLastPgSec1 As Number
If OnLastRecord Then
nLastPgSec1 = PageNumber
End If
Formula = nLastPgSec1
Art
Similar Messages
-
How to suppress page header when rendering particular group footer
Description: I am using Crystal Reports 2008. I have a report with a page header, and several groupings. The groups all suppress their headers, but have footers. The grouping is in the order: type,county,city,status,parent. The first 3 footers force a new page before the footer. The county footer includes summaries and charts.
Problem: The client wants the header displayed for the detail and the header for the county footer to be different. How can I make this happen?
More Info: I currently have just a page header. I have tried messing with the suppress formula for the page header, but I cannot figure out the correct formula to use to suppress the page header on a county footer page. Is there a way to do this, or is there a completely different approach I should be taking to solve this?
I can provide more info if needed.
Google search was unhelpful in solving this problem. This problem is driving me nuts. Any help appreciated.
Thanks,
MichaelWhat i would suggest is to create a new variable in WhilePrintingRecords evaluation time. For example:
1. Boolean variable set to TRUE in Group Footer #2 (County)
2. Reset it to FALSE in Group Header #2 and Group Footer#1
3. Use the variable for conditional suppression -
How to suppress page header when group footer prints
I would like to suppress the page header on my report when a group footer prints. My group footer is going to be a bunch of legal mumbo jumbo and I'm going to have it do a page break before so it prints on it's own page. I do not want my page header info printing on this page.
Is there a way to do this? I am on Crystal XI. Thank you in advance.I haven't tested this, but...
Formula @InGroupHeader:
WhilePrintingRecords;
BooleanVar InGroupFooter;
InGroupFooter = False;
Formula @InGroupFooter:
WhilePrintingRecords;
BooleanVar InGroupFooter;
InGroupFooter = True;
PageHeader.Suppress:
WhilePrintingRecords;
BooleanVar InGroupFooter;
InGroupFooter;
Edit: I think I like Graham's solution better, actually.
Edited by: Garrett Fitzgerald on Jun 15, 2009 12:12 PM -
Suppress page header when printing sub reports
Post Author: GSchmidt
CA Forum: General
I am looking for information on how to suppress the page header on the main report when a certain subreport(s) are printed within group footers.Post Author: Charliy
CA Forum: General
Set a Shared Variable in the Report Header of your subreport. PrintFoot := "NO"
Check it in the Print Suppress formula of the Page Footer of your main report
Reset in the the Report Footer of the subreport. PrintFoot := "YES"
You'll als have to initially set it to the "okay to print" value in the Report Header of the main report just to get started. -
Conditionally Suppressed Page Footer - Blank Space
I am working on a purchase order (PO) form. A PO may be one or more pages. I have two page footers. The first one is conditionally suppressed if pagenumber = 1. The second is conditionally suppressed if pagenumber > 1. However, while the objects within the suppressed page footer are not visible, the entire blank page footer space remains reserved., creating unnecessary and unusable white space after page one.
I am somewhat familiar with this problem. I have experimented with different techniques such as conditionally suppressing each object rather than the entire section, and then choosing Suppress Blank Section for that section.
I have also read SAP BO Notes 1212488.
This seems like a serious problem. Many standard multipage forms require special language (such as legal terms) that appear only at the bottom of the first page.
Any ideas?
Thanks,
ArtSalah,
I tried your suggestion. It did not help, but perhaps I am doing something wrong.
Here is how I have set it up:
Page Footer a
Contains a text object 1 inch tall.
Also contains print date and page n of m
Entire section is 1.5 inches tall.
Conditionally Suppressed if pagenumber > 1
Underlay Folllowing Sections is checked on
Page Footer b
Contains only page n of m
Entire section is 0.5 inches tall
Conditionally Suppressed if pagenumber = 1
Results:
Page 1 prints correctly.
Page 2 and on .... PFa is suppressed as intended
However, page n of m appears about 1.5 inches above bottom of page
In Design, I tried reversing PFa and PFb to see if that matters. It does not.
I hope you or someone else has othre suggestions.
I think I will try placing the large text object into a subreport.
Thanks,
Art -
XI Page Header conditional suppression not exporting to editable RTF
I have a report that I don't want the page header to print on the first page (using the report header instead). It works great exporting to everything except editable RTF.
If i have a suppression condition on the page header, it doesn't print on any of the pages on the rtf. If I have no suppression, it prints on each page (including the first). Is this 'by design'? Is there a work around? Is it slated for a future enhancement? Bug Fix? I can't find any information on this situation. I'm assuming it's similar to the 'Page # of #' problem.
The customer insists on an editable RTF... as they want to edit it before sending it out to their customers!
If anyone has any ideas, knowledge, workarounds... I'd love to hear about it! Thanks!
BelindaHere is a workaround that I just tried and it works:
1. Create a "FakeGroup" formula:
WhileReadingRecords;
2. Insert Croup by "FakeGroup" formula
3. Move it to the top grouping level
4. Go to Options in Group Expert and click Repeat Group Header On Each Page
5. Go to Section Expert and conditionally suppress Group Header 1 (onfirstrecord)
6. Move all content of your Page Header to Group Header1
7. Suppress Page Header -
Removing extra space in page footer after conditional suppression
Hi,
I have two page footers. One of them is conditionally suppressed, the other is always present. When the conditionally suppressed page footer is present, the other footer appears above it. But when the conditionally suppressed page footer is being suppressed, the other footer should occupy the bottom of the page. Instead, it appears that, despite the suppression of the page footer, there is still space reserved at the bottom of the page for it. Any ideas on how to resolve this?
Thank you.
Edited by: plynch on Dec 29, 2011 9:50 PMHi,
So, you have a 'PageFooter a' and 'PageFooter b'. The conditional suppression logic has been applied on Footer b. When Footer b is suppressed, you wish to 'push' the Footer a section down to where Footer b would appear?
Well, when Footer a is suppressed, Footer b takes its place, however it is not the same when the last Page Footer section is suppressed as there is nothing that can take its place and Footer a is already showing up where it should be!
-Abhilash -
Conditional Page Header Suppression
Post Author: whellier
CA Forum: Formula
I have a report in v9.0 that I have inherited.
A formatting issue has come up which requires a page header to be conditionally suppressed.
The condition that triggers the suppression is that the last record printed in the detail section is displayed on the next to last page.
I thought I could readily address this by just creating a formula that looked at the last record and total page count and put the results of the formula into a global variable.
I would then evaluate the variable in the page header, forcing it to be evaluated after the formula execution.
Unfortunately, due to how crystal makes it passes to evaluate formatting and data, the variable doesn't reflect the appropriate value.
Any approaches on how to resolve this would be greatly appreciated.
W. HellierPost Author: Charliy
CA Forum: Formula
try putting OnLastRecord in the Print Suppress formula, thoug that might also suppress if the last record is the first record on the last page. -
Suppress the Page Header section on a specific Section
Hello,
I have a single page word document I want to append to the end of a report I have, so I placed it in Report Footer b. The word document fits perfectly on a single page without any header. I tried simply supressing the Page Header on the last page but because of the length of the the word document it gets cut in half, so the 2nd to last page includes a header and forces the word document onto 2 pages (one with a header and one without). I tried supressing the Page header the last and 2nd to last page, but that results in the printing of an extra page as the word document without a header only takes up one page.
Is there some way to supress a section based on what section is currently printing ie.
WhilePrintingRecords;
Section "Report Footer b"
I am open to any suggestions on how to simply add a report footer section without a page header.
ThanksUnfortunately that also suppresses on the 1st report footer section (RFa)
I tried adding an additonal conditon
OnLastRecord AND Pagenumber >= TotalPageCount - 1
However, this results in the addition of an extra blank page, which changes the page count to 1+ what it should be. This may confuse some users.
Can I specify a specific record? How would I go about doing that? -
Use of Active Button in Header Condition Tab Page
Dear Friends
What is use Active button and what it work in Sales Doct Header Condition Tab page
Thanking you
ArunHi,
When you if enter a header condition type for e.g HB00 & enter the amount & click on activate, then it will activate the condition type in the pricing document.
Hope it will solve your problem.
Regds........
Sumit
Edited by: Sumit Rayaguru on Feb 9, 2009 7:22 AM -
Need a formula to suppress the page header for multiple pages
Hello Experts,
I have a report where I need to suppress the Page Header on 4 pages that have charts. There are two different charts that take up the full page, but my page header shows up at the top of the page.
I found a way to get the page header off of the first page with a formula in the Section Expert; Suppress; but I need to be able to do the same for the other 3 pages.
My formula that worked for the first page is: PageNumber = 2
I tried everything I can think of to add page numbers 15; 21; and 35.
Can you please tell me if this is possible and what I should do? Thanks in advance for your help.
Kathryn.Do you know what pages you want to suppress?
If yes, can you use the suppress formula option in the Section Expert?
pagenumber in [1,2,3,4]
Hope this helps.
Edited by: Sharma Hari on Nov 18, 2009 9:01 PM -
Is it possible to suppress the Page Header of the Main Report based on the Section Name?
Hi,
I am fairly new to Crystal Reports XI. Is it possible to suppress the Page Header of the Main Report based on the Section Name? Thanks.In the section expert you can enter a formula on the suppress function.
You just need something to check against if it is section name you say
{section name} ="Suppressme"
I have used it more in drill level to display headers based on how far you have drilled into a report.
Hope this helps
Eric
Via Christi Health System -
Problem using a conditional suppress in a cross-tab ?
is there a problem using a conditional suppress in a cross-tab on a row or summarized field in crystal XI?
I am using the following conditional suppress on a summarized field and its rows
If {@SortCode}=4 then true;
Sortcode is a group sorting formula field
the summarized field is a formula field as well.
All of the summarized fields are suppressed although the cross- tab performs correctly on @Sortcode and the summarized field when not using the condition
it seems to me to be a reporting flow issue although i've included "whileprintingrecords" and "evaluateafter" with no success.
i have also moved the cross-tab from the report header to group header and applied a conditional suppress on the group header through section expert.
this supresses the group i dont want but includes grand totals for each group and also varys the number of columns
i can't filter on sortcode because one of the grand total calculations requires those records and a subreport or second cross-tab does not contain the same number of columns
the cross-tab is necessary as a client may have columns spanning one to many pages
thanks for your helpHi I have a similar problem,
I have an clock in solution, where i have some dates with data such as, various entries for a date eg, 01/11/2010 1hr, 01/11/2010 3 hrs etc, 03/11/2010 2hrs , 05/11/2010 4.5hrs, 05/11/2010 4 hrs so i need total for each day and highlight only those days, where total is less than 4.5, including days which donu2019t have records eg 02/11/2010 & 04/11/2010, I summarise in totals using a cross tab, to get summarised output for each day as,
Totals
01/11/2010 4
03/11/2010 2
05/11/2010 8.5
in order to get the dates which didnu2019t have records, i added a dataset from Excel spreadsheet where i just have a sequential dates for the year , and use record selection to select only those dates in range which i need to display, so the result i get
01/11/2010 4
02/11/2010 0
03/11/2010 2
04/11/2010 0
05/11/2010 8.5
so far so good, all using cross tab, now i want to suppress rows which have total > 4.5 so the result should be
01/11/2010 4
02/11/2010 0
03/11/2010 2
04/11/2010 0
How can i do that? -
Page Header Printing on Subreport
I have a page header on my main report that prints on an unlinked subreport. Can anyone tell me how I can suppress it?
Hi Gayle,
If the sub report is placed in report footer section, then you will go to selection expert and selected the u2018Page Headeru2019 section. You click on suppress formula of that section and add the following condition
u201COnLastRecordu201D then the u2018Page Headeru2019 will print up to the main report detail section.
Thanks,
Naga. -
Make details section as page header
Hi ,
I have a situation where I use the sections--- Details A, Details B and Details C. I used a Fake group header as page header for Details A. How could I make Details B section as a page header (for Details C section)without repeating on the same page and repeating once on each page.
Any help please..
Thanks.Create a formula like this
@Initialize
WhilePrintingRecords;
numberVar i:=0;
place this in page header and right click on the detail section b and go to section expert and write the condition for the suppress like this
WhilePrintingRecords;
numberVar i;
i:=i+1;
if i<>1 then true
else
false
Regards,
Raghavendra
Maybe you are looking for
-
Agentry App crashes on Device but not in the ATE Testenvirement
Hello, we make a app which works fine in the ATE Testenvirement and also in a iPhone but our main Plattform is the The WIndows Mobile Pocket PC. We use a Motorola MC65 with Windows Mobile 6.1 Professional. On the Motorola the app crashes in a definit
-
Removing of billing block in Sale Order through workflow
Hi all, I want to remove the billing block in sale order when the person approves suing user decision step in workflow . ANy idea would be great ... Regards, Venki
-
Error in the propagation job while setting up streams
Hi, I am trying to setup streams using the enterprise manager. The wizard completes successfully. Capture and apply process is created properly. But everytime the propagation job has the following error: ORA-02019: connection description for remote d
-
Make VM accessible to the outside world (iptables question)
I have a VM running on one of our internal servers on top of Oracle Enterprise Linux 4.x with VMware Server 3.x Inside the VM runs a Oracle Database and a WebLogic Server, and I need to access the Weblogic administrative interface and the application
-
My bank (ING) has cookies that retain my login. Without the login, I have to answer the challenge questions every time. I am not set for private browsing and I have accept cookies from third party sites and until they expire.