/// <summary>
 /// Creates a text report for the plot model.
 /// </summary>
 /// <param name="plotModel">The plot model.</param>
 /// <returns>A text report that contains information about the contents of the plot model.</returns>
 public static string CreateTextReport(this PlotModel plotModel)
 {
     using (var ms = new MemoryStream())
     {
         var    trw    = new TextReportWriter(ms);
         Report report = plotModel.CreateReport();
         report.Write(trw);
         trw.Flush();
         ms.Position = 0;
         var r = new StreamReader(ms);
         return(r.ReadToEnd());
     }
 }
 /// <summary>
 /// The write report.
 /// </summary>
 /// <param name="report">
 /// The report.
 /// </param>
 /// <param name="reportStyle">
 /// The style.
 /// </param>
 public void WriteReport(Report report, ReportStyle reportStyle)
 {
     this.style = reportStyle;
     this.WriteHtmlHeader(report.Title, null, CreateCss(reportStyle));
     report.Write(this);
 }
 /// <summary>
 /// The write report.
 /// </summary>
 /// <param name="report">
 /// The report.
 /// </param>
 /// <param name="reportStyle">
 /// The style.
 /// </param>
 public void WriteReport(Report report, ReportStyle reportStyle)
 {
     this.style = reportStyle;
     this.AddStyles(this.stylePart, reportStyle);
     report.Write(this);
 }
 /// <summary>
 /// The write report.
 /// </summary>
 /// <param name="report">
 /// The report.
 /// </param>
 /// <param name="reportStyle">
 /// The style.
 /// </param>
 public void WriteReport(Report report, ReportStyle reportStyle)
 {
     this.Style = reportStyle;
     report.Write(this);
 }
 /// <summary>
 /// The write report.
 /// </summary>
 /// <param name="report">
 /// The report.
 /// </param>
 /// <param name="reportStyle">
 /// The style.
 /// </param>
 public void WriteReport(Report report, ReportStyle reportStyle)
 {
     this.style = reportStyle;
     this.WriteHtmlHeader(report.Title, null, CreateCss(reportStyle));
     report.Write(this);
 }
 /// <summary>
 /// Writes the report.
 /// </summary>
 /// <param name="report">
 /// The report.
 /// </param>
 /// <param name="reportStyle">
 /// The style.
 /// </param>
 public void WriteReport(Report report, ReportStyle reportStyle)
 {
     report.Write(this);
 }
示例#7
0
 /// <summary>
 /// Writes the specified report.
 /// </summary>
 /// <param name="report">The report.</param>
 /// <param name="reportStyle">The report style.</param>
 public void WriteReport(Report report, ReportStyle reportStyle)
 {
     this.style = reportStyle;
     DefineStyles(this.Document, reportStyle);
     report.Write(this);
 }