private void Table1_ManualBuild(object sender, EventArgs e)
{
// get the data source by its name
DataSourceBase rowData = Report.GetDataSource("Products");
// initialize it
rowData.Init();
// printing the table header
Table1.PrintRow(0);
Table1.PrintColumns();
// loop through the data source rows
while (rowData.HasMoreRows)
{
// printing the table row
Table1.PrintRow(1);
Table1.PrintColumns();
// select the next data row
rowData.Next();
}
// printing the table footer
Table1.PrintRow(2);
Table1.PrintColumns();
}
List<string> items = new List<string>();
items.Add("1a askdfh askfhklas fh");
items.Add("asgflaskjf laskjflasf");
items.Add("asf asjlşfjaslfj aslşfas");
items.Add("asfзjas lfjaslşfj salf");
items.Add("asfasj flasjlşfj aslf");
items.Add("asflkasjflasfjşlasdjlf");
Reports.DetailedProductGroupList report = new Reports.DetailedProductGroupList(); //this is a class saved from a .frx file. It only contains a label that shows name of the report.
report.RegisterData(items, "items");
report.GetDataSource("items").Enabled = true;
WebReport1.Report = report;