public Stream GetCoreXml() { using (IMapMapper mapMapper = MapMapperFactory.CreateMapMapperInstance((Map)m_reportElementDef, GetDefaultFontFamily())) { mapMapper.DpiX = m_dpiX; mapMapper.DpiY = m_dpiY; mapMapper.WidthOverride = m_widthOverride; mapMapper.HeightOverride = m_heightOverride; mapMapper.RenderMap(); return(mapMapper.GetCoreXml()); } }
private void GetImage(DynamicImageInstance.ImageType type, out ActionInfoWithDynamicImageMapCollection actionImageMaps, out Stream image) { using (IMapMapper mapMapper = MapMapperFactory.CreateMapMapperInstance((Map)m_reportElementDef, GetDefaultFontFamily())) { mapMapper.DpiX = m_dpiX; mapMapper.DpiY = m_dpiY; mapMapper.WidthOverride = m_widthOverride; mapMapper.HeightOverride = m_heightOverride; mapMapper.RenderMap(); image = mapMapper.GetImage(type); actionImageMaps = mapMapper.GetImageMaps(); } }