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); } }
private string ExportReportSet(ReportSetInfo info) { var s = ""; s += "<reportset>"; s += "<id>" + XmlUtils.XMLEncode(info.ReportSetId.ToString()) + "</id>"; s += "<name>" + XmlUtils.XMLEncode(info.ReportSetName) + "</name>"; s += "<theme>" + XmlUtils.XMLEncode(info.ReportSetTheme) + "</theme>"; s += "<debug>" + XmlUtils.XMLEncode(info.ReportSetDebug.ToString()) + "</debug>"; s += "<runcaption>" + XmlUtils.XMLEncode(info.RunCaption) + "</runcaption>"; s += "<backcaption>" + XmlUtils.XMLEncode(info.BackCaption) + "</backcaption>"; s += "<connectionid>" + XmlUtils.XMLEncode(info.ReportSetConnectionId.ToString()) + "</connectionid>"; s += "<connectionstring>" + XmlUtils.XMLEncode(info.ReportSetConnectionString.ToString()) + "</connectionstring>"; s += "<footertext>" + XmlUtils.XMLEncode(info.ReportSetFooterText) + "</footertext>"; s += "<headertext>" + XmlUtils.XMLEncode(info.ReportSetHeaderText) + "</headertext>"; s += "<parameterlayout>" + XmlUtils.XMLEncode(info.ParameterLayout) + "</parameterlayout>"; s += "<alwaysshowparameters>" + XmlUtils.XMLEncode(info.AlwaysShowParameters.ToString()) + "</alwaysshowparameters>"; s += "<rendermode>" + XmlUtils.XMLEncode(info.RenderMode) + "</rendermode>"; s += "<reportsetconfig>" + XmlUtils.XMLEncode(info.ReportSetConfig) + "</reportsetconfig>"; s += "</reportset>"; return(s); }