Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Crystal reports 2005 Suppressing page headers when there is a subreport (in the report footer)

Crystal reports 2005 Suppressing page headers when there is a subreport (in the report footer)

Scheduled Pinned Locked Moved Database
help
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Colwin
    wrote on last edited by
    #1

    Here is what i have spent the past day banging my head against. I have a report with page headers and in the report footer i display two subreports and i need to suppress the page header when the subreports are displayed. From what i understand i need to write a formatting formula but i have no idea what this formula is or what it looks like I am very new to Crystal reports. Any help will be appreciated Thanks in advance Colwin

    N F D 3 Replies Last reply
    0
    • C Colwin

      Here is what i have spent the past day banging my head against. I have a report with page headers and in the report footer i display two subreports and i need to suppress the page header when the subreports are displayed. From what i understand i need to write a formatting formula but i have no idea what this formula is or what it looks like I am very new to Crystal reports. Any help will be appreciated Thanks in advance Colwin

      N Offline
      N Offline
      nelsonpaixao
      wrote on last edited by
      #2

      Be glad to know that in other places in the world people are banging their head to!!! I need CR to end my applicaton, if i was more than a begginer in CR i would be glad to help you there. Good Luck X|

      nelsonpaixao@yahoo.com.br trying to help & get help

      1 Reply Last reply
      0
      • C Colwin

        Here is what i have spent the past day banging my head against. I have a report with page headers and in the report footer i display two subreports and i need to suppress the page header when the subreports are displayed. From what i understand i need to write a formatting formula but i have no idea what this formula is or what it looks like I am very new to Crystal reports. Any help will be appreciated Thanks in advance Colwin

        F Offline
        F Offline
        Frank Kerrigan
        wrote on last edited by
        #3

        Create a Formula and place it in a blank and suppressed section before your sub-report, force new page after this section as well === Formula SuppressHeader WhilePrintingRecords; BooleanVar SupressStuff; SupressStuff:= true Create another Formula and place it after your sub report within a blank suppressed section === Formula SuppressHeaderNOT WhilePrintingRecords; BooleanVar SupressStuff; SupressStuff:= false Create a Third Formula which will give the value SupressStuff to other formula (this sounds weird but bear with me). Place a copy of this in the report header as well. == Formula SuppressStuffDisplay WhilePrintingRecords; BooleanVar SupressStuff; Now in your Header and Footer Sections go into Section Expert and click the formula box at Suppress (No Drill-Down) and place the third formula in the @SuppressStuffDisplay or if you want to be fancy use this which does the same thing if @SuppressStuffDisplay= true then true else false How this works; simple answer is flow control. Crystal runs from Top to Botton and runs in a flow. So it always does the stuff before it does the current stuff. Event fire as well like new page and page headers etc.. So before it gets to the subreport it set the value of SupressStuff to false which then suppressed any headers and footers. Then after the subreport it sets SupressStuff to true which allow headers and footers to be printed easy eh ?

        DEVELOPER DAY SCOTLAND 2009 Watch this space http://www.developerdayscotland.com/[^]

        1 Reply Last reply
        0
        • C Colwin

          Here is what i have spent the past day banging my head against. I have a report with page headers and in the report footer i display two subreports and i need to suppress the page header when the subreports are displayed. From what i understand i need to write a formatting formula but i have no idea what this formula is or what it looks like I am very new to Crystal reports. Any help will be appreciated Thanks in advance Colwin

          D Offline
          D Offline
          David Mujica
          wrote on last edited by
          #4

          In your main report, go to Section Expert and find the properties of the Report Footer. Select the "New Page Before" option for the footer section. This will force a new page to be printed right before your embedded sub-report. I've used this method and it works fine. Your sub-report will not have the page header or footer from the main report. Give it a try.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups