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