Exemple #1
0
        public int ProcessDocumentMapNavigationEvent(AspNetCore.ReportingServices.OnDemandReportRendering.Report report, string documentMapId)
        {
            if (!report.HasDocumentMap)
            {
                return(0);
            }
            if (documentMapId == null)
            {
                return(0);
            }
            int  lastPageCollected = 0;
            bool flag = false;
            int  num  = InteractivityChunks.FindDocumentMapLabel(report, documentMapId, ref lastPageCollected, ref flag);

            if (!flag && num == 0)
            {
                using (SPBProcessing sPBProcessing = new SPBProcessing(report, 0, false))
                {
                    sPBProcessing.CanTracePagination = true;
                    sPBProcessing.SetContext(new SPBContext(0, 0, true));
                    return(sPBProcessing.FindDocumentMap(documentMapId, lastPageCollected));
                }
            }
            return(num);
        }
Exemple #2
0
        public int ProcessBookmarkNavigationEvent(AspNetCore.ReportingServices.OnDemandReportRendering.Report report, int totalPages, string bookmarkId, out string uniqueName)
        {
            uniqueName = null;
            if (!report.HasBookmarks)
            {
                return(0);
            }
            if (bookmarkId == null)
            {
                return(0);
            }
            int  lastPageCollected = 0;
            bool flag = false;
            int  num  = InteractivityChunks.FindBoomark(report, bookmarkId, ref uniqueName, ref lastPageCollected, ref flag);

            if (!flag && num == 0)
            {
                using (SPBProcessing sPBProcessing = new SPBProcessing(report, totalPages, true))
                {
                    sPBProcessing.CanTracePagination = true;
                    sPBProcessing.SetContext(new SPBContext(0, 0, true));
                    return(sPBProcessing.FindBookmark(bookmarkId, lastPageCollected, ref uniqueName));
                }
            }
            return(num);
        }
        public static DocumentMapLabels GetLabelsStream(AspNetCore.ReportingServices.OnDemandReportRendering.Report report, int page)
        {
            int    page2 = 0;
            Stream interactivityChunck = InteractivityChunks.GetInteractivityChunck(report, "Labels", page, out page2);

            if (interactivityChunck != null)
            {
                return(new DocumentMapLabels(interactivityChunck, page2));
            }
            return(null);
        }
        public static Bookmarks GetBookmarksStream(AspNetCore.ReportingServices.OnDemandReportRendering.Report report, int page)
        {
            int    page2 = 0;
            Stream interactivityChunck = InteractivityChunks.GetInteractivityChunck(report, "Bookmarks", page, out page2);

            if (interactivityChunck != null)
            {
                return(new Bookmarks(interactivityChunck, page2));
            }
            return(null);
        }
 public void LoadLabelsChunk()
 {
     if (!this.m_chunksLoaded && !this.m_labelsChunkLoaded)
     {
         this.m_labelsChunkLoaded = true;
         if (this.m_report.HasDocumentMap)
         {
             this.m_labels = InteractivityChunks.GetLabelsStream(this.m_report, 1);
         }
     }
 }
 public void LoadInteractiveChunks(int page)
 {
     if (!this.m_chunksLoaded)
     {
         this.m_chunksLoaded = true;
         if (this.m_report.HasBookmarks)
         {
             this.m_bookmarks = InteractivityChunks.GetBookmarksStream(this.m_report, page);
         }
         if (!this.m_labelsChunkLoaded && this.m_report.HasDocumentMap)
         {
             this.m_labels = InteractivityChunks.GetLabelsStream(this.m_report, page);
         }
     }
 }