示例#1
0
        public static void SerializeReport(Report report, Stream stream, IConfiguration configuration)
        {
            int compatibilityVersion = ReportProcessingCompatibilityVersion.GetCompatibilityVersion(configuration);

            new IntermediateFormatWriter(stream, compatibilityVersion).Write(report);
        }
 internal PublishingVersioning(IConfiguration configuration, PublishingContextBase publishingContext)
 {
     m_configuration     = configuration;
     m_publishingContext = publishingContext;
     m_configVersion     = ReportProcessingCompatibilityVersion.GetCompatibilityVersion(m_configuration);
 }
示例#3
0
            public static void DeserializeGroupTree(Report report, IChunkFactory chunkFactory, GlobalIDOwnerCollection globalIDOwnerCollection, IConfiguration configuration, ref OnDemandMetadata odpMetadata)
            {
                bool prohibitSerializableValues = configuration != null && configuration.ProhibitSerializableValues;

                OnDemandProcessingManager.EnsureGroupTreeStorageSetup(odpMetadata, chunkFactory, globalIDOwnerCollection, true, ReportProcessingCompatibilityVersion.GetCompatibilityVersion(configuration), prohibitSerializableValues);
                IStorage           storage            = odpMetadata.GroupTreeScalabilityCache.Storage;
                GroupTreePartition groupTreePartition = (GroupTreePartition)storage.Retrieve(odpMetadata.GroupTreeRootOffset);

                Global.Tracer.Assert(groupTreePartition.TopLevelScopeInstances[0].GetObjectType() == ObjectType.ReportInstanceReference, "GroupTree root partition did not contain a ReportInstance");
                odpMetadata.ReportInstance        = (groupTreePartition.TopLevelScopeInstances[0] as IReference <ReportInstance>);
                odpMetadata.Report                = report;
                odpMetadata.ReportSnapshot.Report = report;
            }
示例#4
0
 public PublishingVersioning(IConfiguration configuration, PublishingContextBase publishingContext)
 {
     this.m_configuration     = configuration;
     this.m_publishingContext = publishingContext;
     this.m_configVersion     = ReportProcessingCompatibilityVersion.GetCompatibilityVersion(this.m_configuration);
 }