예제 #1
0
 protected void ServerListResetButton_Click(object sender, EventArgs e)
 {
     this.ServerListFilterComboBox.SelectedIndex = -1;
     DashboardReports.ConnectionstestXtraRpt report = new DashboardReports.ConnectionstestXtraRpt();
     report.Parameters["Name"].Value = "";
     report.CreateDocument();
     ASPxDocumentViewer1.Report = report;
     ASPxDocumentViewer1.DataBind();
 }
예제 #2
0
        public void FillReport()
        {
            string ServerName     = "";
            string selectedServer = "";

            if (this.ServerListFilterComboBox.SelectedIndex >= 0)
            {
                selectedServer = this.ServerListFilterComboBox.SelectedItem.Value.ToString();
            }
            if (this.ServerComboBox.SelectedIndex >= 0)
            {
                ServerName = this.ServerComboBox.SelectedItem.Value.ToString();
            }
            DashboardReports.ConnectionstestXtraRpt report = new DashboardReports.ConnectionstestXtraRpt();
            report.Parameters["Name"].Value       = selectedServer;
            report.Parameters["ServerName"].Value = ServerName;
            report.CreateDocument();
            ASPxDocumentViewer1.Report = report;
            ASPxDocumentViewer1.DataBind();
        }