Application terminating when running method table manual build

V3ngeanc3V3ngeanc3 Centurion
edited 5:41PM in FastReport .NET
Hi,

I have designed a report and the report was working perfectly.
The moment I added a table the same way I'm doing with all my other reports now all of the sudden as soon as my report loads my entire application quits.

Please help ASAP!

Fast Report Code:

private void tblSignOffs_ManualBuild(object sender, EventArgs e)
{
// get the data source by its name
DataSourceBase dsSignOffs = Report.GetDataSource("SignOffs");
// initialize it
dsSignOffs.Init();

// loop through the data source rows
while (dsSignOffs.HasMoreRows)
{
// printing the table row
tblSignOffs.PrintRow(0);
tblSignOffs.PrintColumns();
// select the next data row
dsSignOffs.Next();
}
// printing the table footer
}

Comments

  • edited 5:41PM
    Hello,

    I don't see any errors in the code. Check the following:
    - the SignOffs datasource exists;
    - your table is not placed on the page header/page footer bands. This may cause infinite loop if the table is larger than a page.
  • V3ngeanc3V3ngeanc3 Centurion
    edited 5:41PM
    Hi there,

    Found the table was in the footer.
    Replaced table with different code and seems to be working now,

    Thanks

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.