protected void Page_Load(object sender, EventArgs e)
 {
     // Load the report layout
     System.Xml.XmlTextReader xtr = new System.Xml.XmlTextReader(Server.MapPath("~") + @"\RpxReports\Params.rpx");
     _rpt.LoadLayout(xtr);
     xtr.Close();
     if (!IsPostBack)
     {
         // Sets the combo box.
         cboViewerType.Items.Clear();
         cboViewerType.Items.Add("HTML");
         cboViewerType.Items.Add("Flash");
         cboViewerType.Items.Add("AcrobatReader");
         cboViewerType.Items.Add("RawHtml");
         // The default is set to HTML viewer.
         cboViewerType.SelectedIndex = 0;
         DateTime InitDate = new DateTime(1994, 9, 2);
         Calendar1.VisibleDate = InitDate;
     }
     _rpt.Restart();
     WebViewer1.Report = _rpt;
     Session["Report"] = _rpt;
 }