CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2003
    Location
    srilanka
    Posts
    88

    Page Header Details Issue

    Hello Experts
    This is my requirement.
    <Page Header> Header Content Goes here
    <Details> List linked to the header shows up here
    It is a continous report with 1000s of similar records.
    It works fine when I have both the header and details content is small enough to appear on one page. but if the details section exceeds the page limit what happens is it goes to the second page with page header also showing up.
    What my requirement is
    Record 1
    <Page Header>
    <Details (Page1)>
    <Details (Page2>
    End of Page

    Record 2
    <Page Header>
    <Details (Page1)>
    End of Page

    Record 3
    <Page Header>
    <Details (Page1)>
    <Details (Page2>
    End of Page

    Could you suggest a suitable crystal report layout to achieve this?
    Heel the world and make it a better place

  2. #2
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Page Header Details Issue

    Select 'Section Expert'
    Select 'Page Header'
    Click on the 'X-2' button at the right side of 'Suppress (No Drill-Down)'
    Write the next code in the Formula Editor window
    Code:
     
    If PageNumber>1 Then True Else False
    You should reset the page number for each one of your 'Records' (Record 1 ...n)

    JG

  3. #3
    Join Date
    Oct 2003
    Location
    srilanka
    Posts
    88

    Re: Page Header Details Issue

    Thanks Mr. JG for the reply.
    I have implemented your solution, but it only hides the page header on the last page. that is
    say if the detail section span to 3 pages then the 3rd page shows up with only the detail section whereas the first and second page has the page header section showing up.
    Heel the world and make it a better place

  4. #4
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Page Header Details Issue

    You should check when you are reseting the pagenumber and how you are seting the form feed
    It would be helpful if You post the rpt

    JG

  5. #5
    Join Date
    Oct 2003
    Location
    srilanka
    Posts
    88

    Re: Page Header Details Issue

    Thanks again Mr. JG for the reply.
    I have just realized that I haven't implemented your second part of the solution.

    You should reset the page number for each one of your 'Records' (Record 1 .

    I don't know how to reset the page number. I googled it but I couldn't find any solution.

    could you explain how to implement that?
    Heel the world and make it a better place

  6. #6
    Join Date
    Jul 2005
    Posts
    1,083

    Re: Page Header Details Issue

    Select 'Section expert'
    Select the desired group footer section
    Check the 'Reset Page Number After'

    JG

  7. #7
    Join Date
    Oct 2003
    Location
    srilanka
    Posts
    88

    Re: Page Header Details Issue

    Thanks again Mr. JG for the reply.
    It worked like charm.

    Have a great week!
    With Regards
    RV
    Heel the world and make it a better place

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured