Example #1
0
 protected override void GetImage(ImageType type, out ActionInfoWithDynamicImageMapCollection actionImageMaps, out Stream image)
 {
     using (IGaugeMapper gaugeMapper = GaugeMapperFactory.CreateGaugeMapperInstance((GaugePanel)m_reportElementDef, GetDefaultFontFamily()))
     {
         gaugeMapper.DpiX           = m_dpiX;
         gaugeMapper.DpiY           = m_dpiY;
         gaugeMapper.WidthOverride  = m_widthOverride;
         gaugeMapper.HeightOverride = m_heightOverride;
         gaugeMapper.RenderGaugePanel();
         image           = gaugeMapper.GetImage(type);
         actionImageMaps = gaugeMapper.GetImageMaps();
     }
 }
Example #2
0
        public Stream GetCoreXml()
        {
            Stream stream = null;

            using (IGaugeMapper gaugeMapper = GaugeMapperFactory.CreateGaugeMapperInstance((GaugePanel)m_reportElementDef, GetDefaultFontFamily()))
            {
                gaugeMapper.DpiX           = m_dpiX;
                gaugeMapper.DpiY           = m_dpiY;
                gaugeMapper.WidthOverride  = m_widthOverride;
                gaugeMapper.HeightOverride = m_heightOverride;
                gaugeMapper.RenderGaugePanel();
                return(gaugeMapper.GetCoreXml());
            }
        }
 internal void ProcessCompiledInstances()
 {
     if (RequiresCompilation && m_compilationState == CompilationState.NotCompiled)
     {
         try
         {
             m_compilationState = CompilationState.Compiling;
             GaugeMapperFactory.CreateGaugeMapperInstance(this, base.RenderingContext.OdpContext.ReportDefinition.DefaultFontFamily).RenderDataGaugePanel();
             m_compilationState = CompilationState.Compiled;
         }
         catch (Exception innerException)
         {
             m_compilationState = CompilationState.NotCompiled;
             throw new RenderingObjectModelException(innerException);
         }
     }
 }