How to shif summary band to next page.

mohanarajmohanaraj 600001
edited 10:01AM 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 10:01AM
    Hello,

    You may use script:

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

    You may use script:

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

    Dear Alex,

    In which Event i put this code.

  • edited 10:01AM
    In the Data1.BeforePrint, for example.
  • mohanarajmohanaraj 600001
    edited 10:01AM
    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 10:01AM
    Please tell me the steps - how can I reproduce the error.
  • mohanarajmohanaraj 600001
    edited 10:01AM
    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 10:01AM
    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