How to shif summary band to next page.

mohanarajmohanaraj 600001
edited 9:36AM in FastReport .NET
Dear all,

In my report if data more than the data band the display of summary band overlap the Page footer. So i want to shit my summary band to next page if the free space height of the data band < the height of summary band.

How i shift the summary band to next page when height of the data band < the height of summary band.

Thanks in advance.

Comments

  • edited 9:36AM
    Hello,

    You may use script:

    if (Data1.Height < ReportSummary1.Height)
    Engine.StartNewPage();
  • mohanarajmohanaraj 600001
    edited 9:36AM
    AlexTZ wrote: »
    Hello,

    You may use script:

    if (Data1.Height < ReportSummary1.Height)
    Engine.StartNewPage();

    Dear Alex,

    In which Event i put this code.

  • edited 9:36AM
    In the Data1.BeforePrint, for example.
  • mohanarajmohanaraj 600001
    edited 9:36AM
    AlexTZ wrote: »
    In the Data1.BeforePrint, for example.

    Dear alex,

    Thanks.

    In report when the session expired the error shown as
    Index was out of range. Must be non-negative and less than the size of the collection.
    in the line.

    ReportPage page = FReport.Pages[0] as ReportPage;


    How i can handle this.

    Thanks in advance.
  • edited 9:36AM
    Please tell me the steps - how can I reproduce the error.
  • mohanarajmohanaraj 600001
    edited 9:36AM
    AlexTZ wrote: »
    Please tell me the steps - how can I reproduce the error.

    Dear Alex,

    In the application after some little bit later i access (after page session expires) then i access the page it will show the above error.


  • edited 9:36AM
    I need an example that I can run and test. Could you prepare a simple app and send it to tz@fast-report.com?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.