WebLabel.cs 660 B

123456789101112131415161718192021222324
  1. using FastReport.Dialog;
  2. using System.Web;
  3. using System.Web.UI;
  4. using System.Web.UI.WebControls;
  5. namespace FastReport.Web
  6. {
  7. public partial class WebReport : WebControl, INamingContainer
  8. {
  9. private string GetLabelHtml(LabelControl control)
  10. {
  11. return string.Format("<div style=\"{0}\">{1}</div>",
  12. GetLabelStyle(control),
  13. control.Text
  14. );
  15. }
  16. private string GetLabelStyle(LabelControl control)
  17. {
  18. return string.Format("{0}{1} white-space: pre-wrap;line-height: normal;", GetStandardStyle(control), GetControlAlign(control));
  19. }
  20. }
  21. }