protected void UserResetButton_Click(object sender, EventArgs e) { this.UserFilterComboBox.SelectedIndex = -1; DashboardReports.IBMConnCommunityXtraRpt report = new DashboardReports.IBMConnCommunityXtraRpt(); report.Parameters["Name"].Value = ""; report.CreateDocument(); ASPxDocumentViewer1.Report = report; ASPxDocumentViewer1.DataBind(); }
public void FillReport() { string ServerName = ""; string selectedCommunity = ""; if (this.UserFilterComboBox.SelectedIndex >= 0) { selectedCommunity = this.UserFilterComboBox.SelectedItem.Value.ToString(); } if (this.ServerComboBox.SelectedIndex >= 0) { ServerName = this.ServerComboBox.SelectedItem.Value.ToString(); } DashboardReports.IBMConnCommunityXtraRpt report = new DashboardReports.IBMConnCommunityXtraRpt(); report.Parameters["Name"].Value = selectedCommunity; report.Parameters["ServerName"].Value = ServerName; report.CreateDocument(); ASPxDocumentViewer1.Report = report; ASPxDocumentViewer1.DataBind(); }