protected override void GetImage(ImageType type, out ActionInfoWithDynamicImageMapCollection actionImageMaps, out Stream image) { using (IGaugeMapper gaugeMapper = GaugeMapperFactory.CreateGaugeMapperInstance((GaugePanel)base.m_reportElementDef, base.GetDefaultFontFamily())) { gaugeMapper.DpiX = base.m_dpiX; gaugeMapper.DpiY = base.m_dpiY; gaugeMapper.WidthOverride = base.m_widthOverride; gaugeMapper.HeightOverride = base.m_heightOverride; gaugeMapper.RenderGaugePanel(); image = gaugeMapper.GetImage(type); actionImageMaps = gaugeMapper.GetImageMaps(); } }
public Stream GetCoreXml() { Stream stream = null; using (IGaugeMapper gaugeMapper = GaugeMapperFactory.CreateGaugeMapperInstance((GaugePanel)base.m_reportElementDef, base.GetDefaultFontFamily())) { gaugeMapper.DpiX = base.m_dpiX; gaugeMapper.DpiY = base.m_dpiY; gaugeMapper.WidthOverride = base.m_widthOverride; gaugeMapper.HeightOverride = base.m_heightOverride; gaugeMapper.RenderGaugePanel(); return(gaugeMapper.GetCoreXml()); } }
public void ProcessCompiledInstances() { if (this.RequiresCompilation && this.m_compilationState == CompilationState.NotCompiled) { try { this.m_compilationState = CompilationState.Compiling; IGaugeMapper gaugeMapper = GaugeMapperFactory.CreateGaugeMapperInstance(this, base.RenderingContext.OdpContext.ReportDefinition.DefaultFontFamily); gaugeMapper.RenderDataGaugePanel(); this.m_compilationState = CompilationState.Compiled; } catch (Exception innerException) { this.m_compilationState = CompilationState.NotCompiled; throw new RenderingObjectModelException(innerException); } } }