Dynamically suppress the page footer

hi, I have to design a report in which the page footer could dynamically be suppressed so that the main content could reach the bottom of the page.
I noticed that if I suppress the page footer  by desygn the "flow" of page content stretches up to the buttom of the page but if I suppress it by code in the formula editor the page content doesn't arrive at the button margin and stops where the page footer would have begun if I hadn't suppressd it.
is there a way to dinamically suppress the page footer so that the "flow" of page content could stretch up to the bottom?
thank you in advance.

Yes it is possible
Code it.
Place the following code to your Crystal Report Designer. Use the same code for your page footer.
'--for Header--
Private Sub rptPageHeader_Format(ByVal pFormattingInfo As Object)
If PageNum.Value = 1 Then
rptPageHeader.Suppress = True
Else
rptPageHeader.Suppress = False
End If
End Sub
Where Pagenum is the object that tracks the current apge number.
Insert the "page number" field from the special field to your report.
OR
Right-click on the Footer Section, choose Format Section. click the button beside the Suppress (No Drill-Down) under Common Tab and place this code...
if pagenumber=TotalPageCount then true
else false
OR
[http://www.crystalkeen.com/articles/crystalreports/pagefooter.htm]
All the best,
Praveen

Similar Messages

  • Suppress a field in the page footer unless it's the last page of the group

    Hi,
    I have a report set up where one can pull invoice information.  There is a page footer used for every page which contains a field that I only want visible when it is the last page of the group.
    For example, one might pull several invoices, each invoice being its own group.  A field would be suppressed in the footer unless it is the last page of that particular invoice.
    Is this something that can be done in Crystal Reports XI?
    Thank you.

    Hi,
    Alright, it's a bit rusty but here's how you can do it:
    1) Create this formula and place it in the Report Header:
    whileprintingrecords;
    numbervar n1 := groupnumber;
    2) Create this formula and place it in the Group Footer:
    whileprintingrecords;
    numbervar n := groupnumber;
    3) Create this formula and place it on the Page Footer:
    whileprintingrecords;
    numbervar n;
    4) Right-click the above formula (Formula on the Page Footer) and select Format Field > Common tab > click the formula button beside 'Suppress' and use this formula:
    numbervar n1;
    numbervar x;
    if currentfieldvalue <> n1 then
      x := 1;
      true;
    else
      x := 0;
      true;
    5) Right-click the field that you wish to always suppress except on the last page and select Format Field > Common tab > click the formula button beside 'Suppress' and use this formula:
    numbervar x;
    if x = 1 then true;
    Let me know how this goes!
    -Abhilash

  • When I Conditional Supress the page footer. It occupy space in report

    I am designing Crystal report with multiple page footers.Initially I have suppressed all page footer. Each page footer is un suppressed against a specific Test Id (db Field). I have done this with formula for each page footer.
    The problem is when Page footer is suppress it occupy space in report.
    Provide solution plz.

    Can you recreate the entire footer as a formula field?  If so:
    1.  create the formula field using an if-then-else statement to poplulate the field:
    WhilePrintingRecords;
    IF PageNumber = 1
    THEN 'text' + text data + (chr(9) + totext(numeric/date data) + chr(13) + 'text data'  + etc...
    Chr(9) = tab
    Chr(13) = next line
    2.  Place the formula field in the page footer using as little space as possible. 
    3.  Enable the formula field's "Can Grow" property.
    4.  You could try setting the formula fields conditional suppression to PageNumber <> 1.  Not sure if this is necessary, but it can't hurt.
    This may do the trick for you.

  • Dynamically display the page numbers on forms

    Hi,
    I have 10 pages in a form with the common footer section/fap in all pages. I used the common footer section to maintain the consistent left and right footer (having State specific footer information) on all ten pages. But I would like to display the page number dynamically based on page number as specified below:
    For example, for page 1, it should display the footer as Page 1A,for page 2 it should display as Page 1B, for page 3 it should display as Page 1C etc.,
    Can anyone help me on this issue how can I dynamically display the page number based on the current page as per the above requirement.
    Thanks,
    Srini.
    Edited by: 943696 on Jul 9, 2012 4:39 PM
    Edited by: 943696 on Jul 9, 2012 4:44 PM

    Ignoring the fact that you have 10 pages that you want to label all as "page 1", assuming you have version 11.4 (? or higher) you might be able to do this.
    Somewhere around that version the concept of "Print time" fields was introduced where you can define a field that will make a call-out to generate the value at the point in time when it tries to print.
    You would name the field something like: ~DAL MyPageValue
    Yes, with the tilde next to DAL and a space between DAL and the name of a script you want to execute that would do your calculation. As the previous reply mentions, you would have to keep track of your own page counter to know whether to append the 'A', 'B', 'C', etc. to the "Page 1" description you intend.

  • Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Same problem here (no graphics in header or footer) and the problem has been reported months ago. It is another bug/feature lost when Apple moves from 09 to the iCloud-compatible versions.  Complain to Apple, you may have better chance than me and they may finally listen to their users....

  • Crystal 6.0 : How to hide the Page footer and Page Header of the Main Report on the Sub report.

    Post Author: pranay
    CA Forum: Crystal Reports
    Hi ,
    I have a Main report and a Sub report .  When a subreport spans across multiple pages , the page header and page footer of the main report gets displayed along with it . I want to hide the Page Footer and Page Header of the main report when a sub report is displayed . Is there any way it could be acheived in Crystal Report 6.0.

    I am assuming you are talking about the JSControl dropdown menu navigation. The easiest way to hide Community pages is to disable the Below Banner View for that navigation scheme, although it also disables the Subcommunties, Related Communities and Go up to Parent Community links. If you still want these in below the banner menu you could not display Community Pages in the "In this Community" tab and only leave the "Community Members and Knowledge Directly" link in there.
    You would think that it would be better to remove the "In this Community" tab althogether but it is tricky to remove it due to the fact that there needs to be a default horizontal menu displayed all the time. Not all Communities will have a Subcommunities or Related Communities tab so these communities would not display any below banner menus at all if there is no "In this Community" tab, which could be confusing.

  • In a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    in a document with several sections, in section VIII and IX one cannot select the text of the page foot nor set the pointer in it; so, one cannot write nor change the page foot text. Please help!

    Question already asked and answered several times.
    It's a bug striking in long documents.
    Select a word somewhere higher in the page then use the arrows to reach the wanted insertion point.
    Yvan KOENIG (VALLAURIS, France) mardi 23 août 2011 15:44:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Moving Instruction text to the page footer

    Hi,
    How to show a instruction text at the page footer.
    Note: As of now I have put the instruction text as 'Page Status' and it appears as the first line int he page body.
    Thanks,
    Gowtam

    Gowtam ,
    Putting Moving Instruction text to the page footer can be accomplished by using RawTextbean. In that u can use html code which makes the text move.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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

  • 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.
    Thanks

    Unfortunately 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?

  • How can I change the position of the page footer when using the report generation functions of LabView 6.1.

    At present my page footer is printing too far up from the bottom of the page. I have been unable to find a property that enables the position to be changed.

    Use the Set Report Margin.vi to set the bottom margin to something less than the default 1. I got a standard report to print a footer .2 inches from the bottom of the paper.

  • Displaying the page footer at the bottom most part of the page

    Hi ,
    I am using page footer region inside the jspx page under </af:panelBorder> tag , it is showing my region where the last TAG ends but i want to show the region at the bottom most of my page i.e. i need some vertical white spaces so that the region should shift at the bottom most of the page .
    I am using the footer region in every jspx page , so i have to make changes in the region only so that it can be shown at the bottom most of the browser
    <af:region id="pageFooterTest"
    regionType="test.pageFooter"/>
    My region is :
    <af:panelHorizontal halign="center" id="abc" >
    <af:outputLabel value="#{messageBean.TDN_GEN_BROW_INFO}" styleClass="test12" id="xyz"
    shortDesc="To turn on the Compatibility View in IE 7 or IE8, select Tools menu, and click Compatibility View."/>
    </af:panelHorizontal>
    Please help me to shift the above region to the bottom of the page as I am using Jdev 10.1.3 .
    Edited by: Vipul B on Feb 21, 2010 11:55 PM

    hey bud...
    thank you for the information...
    i tried doing so...but its not working...not throwing any error on the server, nor its displaying the image........
    jsp code = <img src="ImgServ?fn=/home/chintan/logo.gif">
    web.xml =
    <servlet>
    <servlet-name>ImageServlet</servlet-name>
    <servlet-class>ImageServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ImageServlet</servlet-name>
    <url-pattern>/ImgServ</url-pattern>
    </servlet-mapping>
    servlet code :
    public void doGet(HttpServletRequest req, HttpServletResponse res) throws I
    OException, ServletException {
    String fileName = req.getParameter("fn");
    res.setContentType("image/gif");
    can u tell me what it can be....? and Hopefully i can call a gif / jpg file for the src in image tag right?
    Thank you for your time bud....my doubts can be silly please bear with me...
    regards,
    chintan

  • I want to suppress the page loading status

    Firefox shows the page loading status as a popup on the left bottom corner of the window. I want to switch off this feature, but cannot find a way to do this, it is not in the options.

    ''suppress page loading status, in lower left corner''
    You can hide/show the add-ons bar (formerly status bar) with "Ctrl+/", which is the same as ["Alt"] > View > Toolbars > (check on/off) Add-ons bar
    For more control over the add-ons bar try the "'''Status-4-Evar'''" extension (34KB)
    *https://addons.mozilla.org/firefox/addon/235283/
    * Status-4-Evar Addon Bar Customization<br>http://dmcritchie.mvps.org/firefox/status4evar.htm

  • Dynamically set the page size of a pagenated table

    What is the function to change the page size (i.e. number of rows in a page) of a pagenated table?
    Thanks in advance

    sorry, the problem has been solved.
    the method is in tableRowGroup.

Maybe you are looking for

  • Windows 8 64-bit: Java 7 u51 installation failure (including Java 8)

    Hi, I have been fighting for several months trying to install any version of Java > 7u51. Until Java 8u25 (probably u20), the installation almost completes but at the very end a message says "installation error" without any reason specified and Java

  • Which one better to use - jsp:useBean or import statement

    Hi, I just want to know that which one is better to use jsp:useBean or import statement . I can instantiate and call method of myclass - 1) by importing the class through import tag in jsp as <%@page import="myclass"%. or 2). by using <jsp:useBean ta

  • Migrate data from B&W G3

    My old B&W G3 has some problems - it won't boot into OS9.2.2 unless the Mac install disc is in the machine (already tried new battery). It's a workaround, but that's not my main concern. I want to move all the important data onto my G5. Tried to conn

  • Can I connect a 5.1 speaker set to a HP Pavilion 17-e099ed ?

    Hi, Does anyone know if I can connect an external 5.1 speaker set to a HP Pavilion 17-e099ed ? Thx

  • SD related CIN transactions

    Hi SD Guru's, Can you please tell me what are the SD related CIN transactions. I am confused about this because, My client  have Sales and coordination department. This department handles all the functions related to duties and taxes. It will be very