Пример #1
0
 public Report(AspNetCore.ReportingServices.ReportProcessing.Report reportDef, ReportInstance reportInstance, RenderingContext renderingContext, string reportName, string description, CultureInfo defaultLanguage)
 {
     this.m_reportDef        = reportDef;
     this.m_reportInstance   = reportInstance;
     this.m_renderingContext = renderingContext;
     this.m_reportBody       = null;
     this.m_pageHeader       = null;
     this.m_pageFooter       = null;
     this.m_reportPagination = null;
     this.m_name             = reportName;
     this.m_description      = description;
     this.m_reportUrl        = null;
     this.m_documentMapRoot  = null;
     this.m_reportParameters = null;
     if (reportDef.Language != null)
     {
         if (reportDef.Language.Type == ExpressionInfo.Types.Constant)
         {
             this.m_reportLanguage = reportDef.Language.Value;
         }
         else if (reportInstance != null)
         {
             this.m_reportLanguage = reportInstance.Language;
         }
     }
     if (this.m_reportLanguage == null && defaultLanguage != null)
     {
         this.m_reportLanguage = defaultLanguage.Name;
     }
     this.AdjustBodyWhitespace();
 }
Пример #2
0
        public static ReportUrl BuildHyperLinkURL(string hyperLinkUrlValue, RenderingContext renderingContext)
        {
            ReportUrl result = null;

            try
            {
                if (hyperLinkUrlValue != null)
                {
                    bool flag = default(bool);
                    if (renderingContext.TopLevelReportContext.IsReportServerPathOrUrl(hyperLinkUrlValue, false, out flag) && flag)
                    {
                        NameValueCollection unparsedParameters = default(NameValueCollection);
                        renderingContext.TopLevelReportContext.PathManager.ExtractFromUrl(hyperLinkUrlValue, out hyperLinkUrlValue, out unparsedParameters);
                        if (hyperLinkUrlValue != null && hyperLinkUrlValue.Length != 0)
                        {
                            return(new ReportUrl(renderingContext, hyperLinkUrlValue, false, unparsedParameters, true));
                        }
                        return(null);
                    }
                    return(new ReportUrl(renderingContext, hyperLinkUrlValue, false, null, true));
                }
                return(result);
            }
            catch
            {
                return(null);
            }
        }
        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;
        }
Пример #4
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;
            }
        }
Пример #6
0
 public ReportUrl(AspNetCore.ReportingServices.ReportRendering.ReportUrl renderUrl)
 {
     this.m_renderUrl = renderUrl;
 }
Пример #7
0
 public static string BuildPathUri(ICatalogItemContext currentICatalogItemContext, string initialUrl, NameValueCollection unparsedParameters, out ICatalogItemContext newContext)
 {
     return(ReportUrl.BuildPathUri(currentICatalogItemContext, true, initialUrl, unparsedParameters, out newContext));
 }
Пример #8
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));
 }
Пример #9
0
 public ReportUrl(ICatalogItemContext catContext, string initialUrl)
 {
     this.m_pathUri = new Uri(ReportUrl.BuildPathUri(catContext, initialUrl, (NameValueCollection)null, out this.m_newICatalogItemContext));
 }