Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
 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());
     }
 }