IPrintService.cs 774 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace FastReport.Web.Services
  5. {
  6. /// <summary>
  7. /// Interface for printing the report.
  8. /// </summary>
  9. /// <remarks>
  10. /// The interface may change over time
  11. /// </remarks>
  12. public interface IPrintService
  13. {
  14. /// <summary>
  15. /// Prints report
  16. /// </summary>
  17. /// <param name="webReport">WebReport to be printed</param>
  18. /// <param name="printMode">The print mode is "pdf" or "html".</param>
  19. /// <returns>Returns an array of bytes depending on the print mode. File to print from browser if print mode is "html" and pdf file if print mode is "pdf"</returns>
  20. byte[] PrintReport(WebReport webReport, string printMode);
  21. }
  22. }