/// <summary> /// Renders a report to a stream. /// </summary> /// <param name="renderer">The renderer for the report</param> /// <param name="stream">The stream to render to.</param> public void RenderToStream(IReportRenderer renderer, Stream stream) { renderer.BeforeRendering(); this.Visit(renderer); renderer.AfterRendering(); renderer.Save(stream); }