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