or
string reportName = Server.UrlDecode(this.Request.QueryString["ReportName"]);
string id = Request.QueryString["id"];
if (!string.IsNullOrEmpty(reportName))
{
Type reportType = Type.GetType(reportName);
IReportDocument report = (IReportDocument)Activator.CreateInstance(reportType);
????? report.ReportParameters
this.ReportViewer1.Report = report;
this.Page.Title = reportType.Name;
}
<Lines> |
<Item ID="IDI-1-17" ParentID="" UserCode="B24R" Description="Base"/> |
<Item ID="IDI-1-75" ParentID="IDI-1-17" UserCode="FL.TOE" Description="Flush Toe Kick"/> |
<Item ID="IDI-1-20" ParentID="" UserCode="B24L" Description="Base"/> |
<Item ID="IDI-1-57" ParentID="IDI-1-20" UserCode="FL.TOE" Description="Flush Toe Kick"/> |
<Item ID="IDI-1-63" ParentID="IDI-1-20" UserCode="FD.SH" Description="Full Depth Shelf"/> |
<Item ID="IDI-1-53" ParentID="IDI-1-20" UserCode="CT2" Description="Knife Section Kit"/> |
<Item ID="IDI-1-26" ParentID="" UserCode="B36-2" Description="Base"/> |
<Item ID="IDI-1-81" ParentID="IDI-1-26" UserCode="FL.TOE" Description="Flush Toe Kick"/> |
<Item ID="IDI-1-36" ParentID="" UserCode="SBFD36" Description="Sink Base FHD"/> |
<Item ID="IDI-1-83" ParentID="IDI-1-36" UserCode="FL.TOE" Description="Flush Toe Kick"/> |
<Item ID="IDI-1-40" ParentID="IDI-1-36" UserCode="SK.21-1TUB" Description="21" 1 Tub Sink"/> |
<Item ID="IDI-1-22" ParentID="" UserCode="W2424" Description="Wall"/> |
<Item ID="IDI-1-24" ParentID="" UserCode="W2424L-GL" Description="Wall w/Glass"/> |
</Lines> |
private void detail_ItemDataBound(object sender, EventArgs e) |
{ |
Telerik.Reporting.Processing.DetailSection detailSection = (Telerik.Reporting.Processing.DetailSection)sender; |
DataRow row = (DataRow)detailSection.DataObject.RawData; |
TUsageSubReport subReport = (TUsageSubReport)this.UsageSubReport.ReportSource; |
DataSet ds = null; |
DB.Reports_GetAccountUsages(Convert.ToInt32(row["UserId"]), new DateTime(2009, 10, 1), new DateTime(2009, 10, 31), m_ConnectionString, out ds); |
subReport.Usages = ds; |
} |
Line 54: { |