public ReportUrlBuilder(RenderingContext reportContext, string initialUrl, string replacementRoot)
        {
            ICatalogItemContext topLevelReportContext = reportContext.TopLevelReportContext;
            ICatalogItemContext catalogItemContext    = default(ICatalogItemContext);

            ReportUrl.BuildPathUri(topLevelReportContext, initialUrl, (NameValueCollection)null, out catalogItemContext);
            this.m_catalogItemUrlBuilder = new CatalogItemUrlBuilder(topLevelReportContext, topLevelReportContext.RSRequestParameters);
            this.m_replacementRoot       = replacementRoot;
        }
Ejemplo n.º 2
0
        public ReportUrl(RenderingContext reportContext, string initialUrl, bool checkProtocol, NameValueCollection unparsedParameters, bool useReplacementRoot)
        {
            this.m_reportContext = reportContext;
            this.m_pathUri       = new Uri(ReportUrl.BuildPathUri(reportContext.TopLevelReportContext, checkProtocol, initialUrl, unparsedParameters, out this.m_newICatalogItemContext));
            bool flag = default(bool);

            if (useReplacementRoot && reportContext.TopLevelReportContext.IsReportServerPathOrUrl(this.m_pathUri.AbsoluteUri, checkProtocol, out flag))
            {
                this.m_replacementRoot = reportContext.ReplacementRoot;
            }
        }
        public ReportUrlBuilder(RenderingContext reportContext, string initialUrl, bool useReplacementRoot, bool addReportParameters)
        {
            ICatalogItemContext topLevelReportContext = reportContext.TopLevelReportContext;
            ICatalogItemContext catalogItemContext    = default(ICatalogItemContext);
            string pathOrUrl = ReportUrl.BuildPathUri(topLevelReportContext, initialUrl, (NameValueCollection)null, out catalogItemContext);

            this.m_catalogItemUrlBuilder = new CatalogItemUrlBuilder(topLevelReportContext, topLevelReportContext.RSRequestParameters);
            if (addReportParameters)
            {
                this.m_catalogItemUrlBuilder.AppendReportParameters(reportContext.TopLevelReportContext.RSRequestParameters.ReportParameters);
            }
            this.m_useRepacementRoot = useReplacementRoot;
            bool flag = default(bool);

            if (reportContext != null && reportContext.TopLevelReportContext.IsReportServerPathOrUrl(pathOrUrl, true, out flag))
            {
                this.m_replacementRoot = reportContext.ReplacementRoot;
            }
        }
Ejemplo n.º 4
0
 public static string BuildPathUri(ICatalogItemContext currentICatalogItemContext, string initialUrl, NameValueCollection unparsedParameters, out ICatalogItemContext newContext)
 {
     return(ReportUrl.BuildPathUri(currentICatalogItemContext, true, initialUrl, unparsedParameters, out newContext));
 }
Ejemplo n.º 5
0
 public ReportUrl(RenderingContext reportContext, string initialUrl)
 {
     this.m_reportContext = reportContext;
     this.m_pathUri       = new Uri(ReportUrl.BuildPathUri(reportContext.TopLevelReportContext, initialUrl, (NameValueCollection)null, out this.m_newICatalogItemContext));
 }
Ejemplo n.º 6
0
 public ReportUrl(ICatalogItemContext catContext, string initialUrl)
 {
     this.m_pathUri = new Uri(ReportUrl.BuildPathUri(catContext, initialUrl, (NameValueCollection)null, out this.m_newICatalogItemContext));
 }