Example #1
0
        public DashboardReports.DominoDiskAvgXtraRpt GetRpt()
        {
            string srvName    = "";
            bool   isSummary  = false;
            bool   exactmatch = false;
            string srvType    = "";

            try
            {
                report = new DashboardReports.DominoDiskAvgXtraRpt();
                report.Parameters["ServerName"].Value    = srvName;
                report.Parameters["ServerNameSQL"].Value = srvName;
                report.Parameters["DaysRem"].Value       = -1;
                report.Parameters["ExactMatch"].Value    = exactmatch;
                report.Parameters["IsSummary"].Value     = isSummary;
                report.Parameters["ServerType"].Value    = srvType;
                report.Parameters["ServerTypeSQL"].Value = srvType;
                report.SetReport(report);
                //XRChart CurrentDiskSpaceChart = new XRChart();
                //CurrentDiskSpaceChart = (XRChart)report.FindControl("CurrentDiskSpaceChart",true);
                //report.SetGraphForDiskSpace(srvName,report,CurrentDiskSpaceChart);
            }
            catch (Exception ex)
            {
                WriteServiceHistoryEntry(DateTime.Now.ToString() + " The following error has occurred in GetRpt: " + ex.Message);
            }
            return(report);
        }