public static string GetReportItemName(string type, int id)
    {
        // Switch by type
        switch (ReportInfoProvider.StringToReportItemType(type))
        {
        // Graph
        case ReportItemType.Graph:
        case ReportItemType.HtmlGraph:
            ReportGraphInfo rgi = ReportGraphInfoProvider.GetReportGraphInfo(id);
            if (rgi != null)
            {
                return(rgi.GraphName);
            }
            break;

        // Table
        case ReportItemType.Table:
            ReportTableInfo rti = ReportTableInfoProvider.GetReportTableInfo(id);
            if (rti != null)
            {
                return(rti.TableName);
            }
            break;

        // Value
        case ReportItemType.Value:
            ReportValueInfo rvi = ReportValueInfoProvider.GetReportValueInfo(id);
            if (rvi != null)
            {
                return(rvi.ValueName);
            }
            break;
        }

        return(String.Empty);
    }