The report list which Izenda includes is robust and ajax driven. It includes a modify
and delete button for each report and uses an html table for structure. You may
choose to write your own report list, however, we will explain the general idea
and give code more samples here. Feel free to deconstruct and use the full code
behind as a template to guide your efforts. How do I get the list of reports which
I am going to use The AdHocSettings.AdHocConfig.FilteredListReports() setting returns
a filtered report info collection which contains all of the reports with the filters
already applied. You will need to declare a report list object:
private ReportInfo[] reports;
Then you will need to connect it to the setting by equating them:
reports = AdHocSettings.AdHocConfig.FilteredListReports();
After this, you will need to iterate through the report info collection:
foreach (ReportInfo info in reports)
{
string processedReportName = info.FullName.Replace(' ', '+');
Response.Write("<a href='" +
AdHocSettings.ReportViewerWithDelimiter + "rn=" +
processedReportName + "'> <b>" + info.FullName +
"</b></a><br>");
}
As it iterates, you print out the report name as a hyper-link which links to the report designer page. This is a very basic example, it is also possible to do this via javascript or add whatever buttons and functionality you desire.
Report List code sample with no asp objects
This code sample utilizes no asp objects and prints out a simple list of reports with the format of the name or cat/name in a list down the page.
*ReportListNoAspObjects.zip
(file size: 749 B, MIME TYPE: application/zip)
Report List code sample using asp controls
This code sample utilizes a simple asp control and prints out a simple list of reports with the format of/ the name and category headings in a list down the page.
*ReportListAspObjects.zip
(file size: 1 KB, MIME TYPE: application/zip)
Report List code sample with delete and edit buttons and tables
This code sample utilizes asp controls and prints out a list of reports using simple, clean tables with the format of the name and category headings in a list down the page. It also includes delete and edit links and full report information for each of the reports.
*ReportListFull.zip
(file size: 3 KB, MIME TYPE: application/zip)