public void CreateCriImageDefinition() { if (this.m_generatedReportItem != null) { throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidOperation); } AspNetCore.ReportingServices.ReportIntermediateFormat.Image image = new AspNetCore.ReportingServices.ReportIntermediateFormat.Image(-base.m_reportItemDef.ID, base.m_reportItemDef.Parent); image.ParentInstancePath = (AspNetCore.ReportingServices.ReportIntermediateFormat.IDOwner)base.m_reportItemDef.ParentInstancePath; image.GlobalID = -this.CriDef.GlobalID; image.Name = "Image"; base.m_reportItemDef.SetupCriRenderItemDef(image); image.Source = Image.SourceType.Database; image.Action = new AspNetCore.ReportingServices.ReportIntermediateFormat.Action(); Image image2 = new Image(this.ParentScope, base.ParentDefinitionPath, this.m_indexIntoParentCollectionDef, image, base.RenderingContext); image2.CriOwner = this; image2.CriGenerationPhase = CriGenerationPhases.Definition; this.m_generatedReportItem = image2; }
byte[] IBaseImage.GetImageData(out List <string> fieldsUsedInValue, out bool errorOccurred) { AspNetCore.ReportingServices.ReportIntermediateFormat.Image image = (AspNetCore.ReportingServices.ReportIntermediateFormat.Image)base.ReportItemDef; bool flag = image.ShouldTrackFieldsUsedInValue(); fieldsUsedInValue = null; if (flag) { base.RenderingContext.OdpContext.ReportObjectModel.ResetFieldsUsedInExpression(); } byte[] result = image.EvaluateBinaryValueExpression(base.Instance.ReportScopeInstance, base.RenderingContext.OdpContext, out errorOccurred); if (errorOccurred) { return(null); } if (flag) { fieldsUsedInValue = new List <string>(); base.RenderingContext.OdpContext.ReportObjectModel.AddFieldsUsedInExpression(fieldsUsedInValue); } return(result); }
public Image(IReportScope reportScope, IDefinitionPath parentDefinitionPath, int indexIntoParentCollectionDef, AspNetCore.ReportingServices.ReportIntermediateFormat.Image reportItemDef, RenderingContext renderingContext) : base(reportScope, parentDefinitionPath, indexIntoParentCollectionDef, reportItemDef, renderingContext) { }