Error StackOverflow with table in PageFooter

Jack MortonJack Morton Valencia Spain
edited June 2016 in FastReport .NET
Hi everyone,

I downloaded few days ago a trial of FastReports .Net and we are trying to update one of our reports in order to evaluate if we can migrate our reports from one system to other.

The problem occurs when I change one TableObject from the detail report to the PageFooter, it appears the attached error while printing the report.

I found out that the error happens in this code:
   
private void TableModalidadPago_ManualBuild(object sender, EventArgs e)
    {
      // get the data source by its name
      DataSourceBase rowData = Report.GetDataSource("DOCUMENTO_MODALIDAD_PAGO");

      // init the data source
      rowData.Init();
      
      if (rowData.RowCount == 0) 
      {
        TableModalidadPago.Visible = false;
        return;
      }    
      
      // print the first table row - it is a header
      TableModalidadPago.PrintRow(0);
      TableModalidadPago.PrintColumns();      
      TableModalidadPago.PrintRow(1);
      TableModalidadPago.PrintColumns();
      
      
      // now enumerate the data source and print the table body
      while (rowData.HasMoreRows)
      {
        // print the table body  
        TableModalidadPago.PrintRow(2);
        TableModalidadPago.PrintColumns();
        
        // go next data source row
        rowData.Next();
      }
      
      TableModalidadPago.CanBreak = false;
      TableModalidadPago.CanGrow = true;  

    }
  }

There's some limitation while printing to put the event ManualBuild at the PageFooter region?

Thanks.

I added also this question to stackoverflow website ( StackOverflow)

Comments

  • Jack MortonJack Morton Valencia Spain
    edited 4:17AM
    Updated to latest version 2016.3, the problem still happens, the only difference is that now doesnt display any error message and the program just closes without displaying any information.

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.