private void InitReportSet()
        {
            // init stack for drilldown
            if (Session[DrilldownStackKey] == null)
            {
                _DrilldownStack = new ArrayListStack();
            }
            else
            {
                _DrilldownStack = (ArrayListStack)(Session[DrilldownStackKey]);
            }

            var objReportSetController = new ReportSetController();

            _ReportSet = objReportSetController.GetReportSetByModule(EffectiveModuleId);
            if (_ReportSet != null)
            {
                if (_ReportSet.ReportSetTheme != "None")
                {
                    DNNUtilities.InjectCSS(Page, ResolveUrl(string.Format("skins/{0}/styles.css", _ReportSet.ReportSetTheme)));
                }
                // get reports
                _Reports = objReportSetController.GetReportSetReport(ReportSet.ReportSetId);
            }
        }
        public string ExportModule(int ModuleID)
        {
            var ctrl = new ReportSetController();

            var strXML = "";

            strXML += "<sqlviewpro>";

            var info = ctrl.GetReportSetByModule(ModuleID);

            strXML += ExportReportSet(info);

            strXML += ExportReport(info.ReportSetId);

            strXML += ExportParameter(info.ReportSetId);

            // close it off
            strXML += "</sqlviewpro>";

            return(strXML);
        }