Trying to get page break BEFORE first groupheader.

Posted by: jmakuch on 4 August 2017, 2:52 pm EST

  • Posted 4 August 2017, 2:52 pm EST

    I have a report that contains a page header and one group header.
    I would like the first instance of the groupheader to apear on a new page, (ie, the first page of the report ONLY contains the PageHeader) but setting NewPage = Before seems to have no effect on the first instance of the grouping, only subsequent instances.
    Does anyone know how I might get the first instance of the groupheader to start on a new page?


    I also tried placing a PageBreak at the bottom of the pageheader, but had no effect.


    Thanks in advance for any help!


    John

  • Replied 4 August 2017, 2:52 pm EST

    I would suggest setting your report header's NewPage property to ddNPAfter.
  • Replied 4 August 2017, 2:52 pm EST

    Oops, I do not have a ReportHeader, I have a PageHeader.


    So what I meant in my originl posting was that I would my first page to only contain the pageheader.


    Sorry for any confusion.


    W. Smith, thanks for your response!  I think your suggestion might not be applicable in since I have no ReportHeader?


     


    John

  • Replied 4 August 2017, 2:52 pm EST

    Maybe you should be running a report header. You could try and ditch the page header section and replace it with an outer unbound group header and see if you can get the NewPage and Repeat properties and their settings to give you your desired results.


    The whole point of a page header is to head a page with following data and not be widowed without any data. So setting NewPage to ddNPBefore on your current group header is doing exactly as it is supposed to, just with the first page there is no previous data from which to split from. Based on that maybe keep the page header but still add an outer unbound group header and fill it with some white space and leave ddNPBefore on your current group header, that way you have something to be on your first page so your current group can split off to page 2.


    (I was rather sure you had report header in your original post, did you edit it or am I going mad?)

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels