Exemple #1
0
        public override void PrepareExecutionSnapshot(SnapshotBase target, string compiledDefinitionChunkName)
        {
            ControlSnapshot controlSnapshot      = (ControlSnapshot)target;
            int             imageChunkTypeToCopy = (int)AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.GetImageChunkTypeToCopy(ReportProcessingFlags.OnDemandEngine);
            string          text = compiledDefinitionChunkName;

            if (text == null)
            {
                text = "CompiledDefinition";
            }
            foreach (Chunk allChunk in this.m_allChunks)
            {
                ChunkHeader header = allChunk.Header;
                if (header.ChunkType == imageChunkTypeToCopy)
                {
                    controlSnapshot.m_allChunks.Add(allChunk);
                }
                else if (header.ChunkName.Equals("CompiledDefinition", StringComparison.Ordinal))
                {
                    Chunk chunk = new Chunk(allChunk);
                    chunk.Header.ChunkName = text;
                    controlSnapshot.m_allChunks.Add(chunk);
                }
                else if (header.ChunkType == 5 || header.ChunkType == 9)
                {
                    Chunk item = new Chunk(allChunk);
                    controlSnapshot.m_allChunks.Add(item);
                }
            }
        }
Exemple #2
0
 private void CopyAllChunksTo(ControlSnapshot target)
 {
     foreach (Chunk allChunk in this.m_allChunks)
     {
         if (!target.m_allChunks.Contains(allChunk))
         {
             target.m_allChunks.Add(allChunk);
         }
     }
 }
Exemple #3
0
        public override void CopyImageChunksTo(SnapshotBase target)
        {
            ControlSnapshot target2 = (ControlSnapshot)target;

            this.CopyAllChunksTo(target2);
        }