Beispiel #1
0
 internal void InternalRender(string format, bool allowInternalRenderers, string deviceInfo, PageCountMode pageCountMode, CreateAndRegisterStream createStreamCallback, out Warning[] warnings)
 {
     lock (m_syncObject)
     {
         if (createStreamCallback == null)
         {
             throw new ArgumentNullException("createStreamCallback");
         }
         if (!ValidateRenderingFormat(format))
         {
             throw new ArgumentOutOfRangeException("format");
         }
         EnsureExecutionSession();
         try
         {
             m_lastRenderingWarnings = m_processingHost.Render(format, deviceInfo, PageCountModeToProcessingPaginationMode(pageCountMode), allowInternalRenderers, m_dataSources, createStreamCallback.ToOuterType());
         }
         catch (Exception processingException)
         {
             throw WrapProcessingException(processingException);
         }
         warnings = Warning.FromProcessingMessageList(m_lastRenderingWarnings);
         WriteDebugResults(warnings);
     }
 }