• Page break on subreport (2002)

    Author
    Topic
    #404730

    I have a report which is a notice memo. The subreport is a list of names. (and other data). The sub report is of varying length, and can run up to three pages. I need for there to be a page break once it prints the last name, so the next “letter” begins at the top of the page. I found the page break icon and placed it on the subreport below the data fields. It seems to be behaving differently, but is still bleeding over onto the first page of the next report. All help greatly appreciated.

    Viewing 1 reply thread
    Author
    Replies
    • #825506

      You will have to set up the page breaks in the main report, either using page break controls or using the Force New Page property of sections of the main report. Subreports don’t handle page breaks.

      • #825853

        Well, that semi-worked. Now, rather than have the list (from the subreport) start on the same page as the letter, it starts on a second page. I like that better. This solves most of the problem. There are two lists that are still bleeding over to the first page of the next department. If I put the page break at the top of the report, I just get a blank page. Where do I find the Force new page property? I don’t see that anywhere. shrug

        Thanks so much for your help.

        • #825870

          Force New Page is a property of some sections of a report:
          – The report header and report footer sections.
          – Group header and group footer sections.
          – The detail section.
          The property is in the Format tab of the Properties window, and can be set to one of four values:
          – None
          – Before Section
          – After Section
          – Before and After

          • #826019

            Oh this is so close. I put the Force new page in the Page header section of the main report. Now I am getting a blank page with just the report header before each new department. I can make this work. If there is some way to eliminate the blank pages, I would truly appreciate learning it.
            Thank you for your patience with a beginner. I am learning so much. thankyou

            • #826031

              I don’t understand. The page header and page footer sections are the only sections that *don’t* have a Force New Page property, and a page break control has no effect if placed in the page header or footer section.

            • #826064

              Well, your right (of course). The Force new Page is on the Report Header, and it says Before this section. So — now I’m really confused confused
              The nearly blank pages are printing with the Page Header. There is a page break in the detail section after the script. This forces the subreport to a new page. This looks like it should be so simple.

            • #826072

              I know it can be confusing. In my experience, a page break control is only needed in special circumstances (you can make it visible/invisible in code.) For most reports, experimenting with the Force New Page property of various sections will eventually result in the desired behavior.

              If you don’t succeed, you might post a stripped down version of the database. See post 371550 for instructions.

            • #826078

              Thanks Hans. This just got bumped to tomorrows list since I am about to escape. flee
              I’m sure I will be visiting with you tomorrow. I’ll try to find something to occupy your mind. evilgrin

            • #826079

              Thanks Hans. This just got bumped to tomorrows list since I am about to escape. flee
              I’m sure I will be visiting with you tomorrow. I’ll try to find something to occupy your mind. evilgrin

            • #826065

              Well, your right (of course). The Force new Page is on the Report Header, and it says Before this section. So — now I’m really confused confused
              The nearly blank pages are printing with the Page Header. There is a page break in the detail section after the script. This forces the subreport to a new page. This looks like it should be so simple.

            • #826032

              I don’t understand. The page header and page footer sections are the only sections that *don’t* have a Force New Page property, and a page break control has no effect if placed in the page header or footer section.

          • #826020

            Oh this is so close. I put the Force new page in the Page header section of the main report. Now I am getting a blank page with just the report header before each new department. I can make this work. If there is some way to eliminate the blank pages, I would truly appreciate learning it.
            Thank you for your patience with a beginner. I am learning so much. thankyou

        • #825871

          Force New Page is a property of some sections of a report:
          – The report header and report footer sections.
          – Group header and group footer sections.
          – The detail section.
          The property is in the Format tab of the Properties window, and can be set to one of four values:
          – None
          – Before Section
          – After Section
          – Before and After

      • #825854

        Well, that semi-worked. Now, rather than have the list (from the subreport) start on the same page as the letter, it starts on a second page. I like that better. This solves most of the problem. There are two lists that are still bleeding over to the first page of the next department. If I put the page break at the top of the report, I just get a blank page. Where do I find the Force new page property? I don’t see that anywhere. shrug

        Thanks so much for your help.

    • #825507

      You will have to set up the page breaks in the main report, either using page break controls or using the Force New Page property of sections of the main report. Subreports don’t handle page breaks.

    Viewing 1 reply thread
    Reply To: Reply #826078 in Page break on subreport (2002)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel