protected override void GetImage(ImageType type, out ActionInfoWithDynamicImageMapCollection actionImageMaps, out Stream image) { using (IChartMapper chartMapper = ChartMapperFactory.CreateChartMapperInstance((Chart)base.m_reportElementDef, base.GetDefaultFontFamily())) { chartMapper.DpiX = base.m_dpiX; chartMapper.DpiY = base.m_dpiY; chartMapper.WidthOverride = base.m_widthOverride; chartMapper.HeightOverride = base.m_heightOverride; chartMapper.RenderChart(); image = chartMapper.GetImage(type); actionImageMaps = chartMapper.GetImageMaps(); } }
public Stream GetCoreXml() { if (base.m_reportElementDef.IsOldSnapshot) { return(null); } using (IChartMapper chartMapper = ChartMapperFactory.CreateChartMapperInstance((Chart)base.m_reportElementDef, base.GetDefaultFontFamily())) { chartMapper.DpiX = base.m_dpiX; chartMapper.DpiY = base.m_dpiY; chartMapper.WidthOverride = base.m_widthOverride; chartMapper.HeightOverride = base.m_heightOverride; chartMapper.RenderChart(); return(chartMapper.GetCoreXml()); } }