body.cs 575 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. namespace FastReport.Web
  3. {
  4. partial class WebReport
  5. {
  6. string template_body(bool renderBody)
  7. {
  8. if (!renderBody)
  9. return $@"
  10. <div class=""{template_FR}-body"" style=""min-height:250px;min-width:250px;"">
  11. <script>
  12. setTimeout(function () {{
  13. {template_FR}.load();
  14. }}, 100);
  15. </script>
  16. </div>
  17. ";
  18. return $@"
  19. <div class=""{template_FR}-body"">
  20. {template_outline()}
  21. <div class=""{template_FR}-report"">
  22. {ReportBody()}
  23. </div>
  24. ";
  25. }
  26. }
  27. }