Application terminating when running method table manual build
V3ngeanc3
Centurion
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
}
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
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.
Found the table was in the footer.
Replaced table with different code and seems to be working now,
Thanks