예제 #1
0
        public static Report DeserializeReport(bool keepReferences, GlobalIDOwnerCollection globalIDOwnerCollection, IDOwner parentIDOwner, ReportItem parentReportItem, Stream stream)
        {
            IntermediateFormatReader intermediateFormatReader = new IntermediateFormatReader(stream, new ProcessingRIFObjectCreator(parentIDOwner, parentReportItem), globalIDOwnerCollection);
            Report report = (Report)intermediateFormatReader.ReadRIFObject();

            report.ReportOrDescendentHasUserSortFilter = report.HasUserSortFilter;
            if (!keepReferences)
            {
                intermediateFormatReader.ClearReferences();
            }
            return(report);
        }