using System;
using System.Web.UI;
using Telerik.Reporting;

public partial class ReportViewer : Page
{   
    
	protected void Page_Load(object sender, EventArgs e)
	{        	    
        string reportName = Server.UrlDecode(this.Request.QueryString["ReportName"]);
	    
	    if (!string.IsNullOrEmpty(reportName))
        {
            Type reportType = Type.GetType(reportName);
            //IReportDocument report = (IReportDocument;
            this.ReportViewer1.Report = (Activator.CreateInstance(reportType) as IReportDocument);
            this.Page.Title = "telerik Report Viewer - " + reportType.Name;
        }	    
	}   
}
