FastReports / FastReport

Free Open Source Reporting tool for .NET6/.NET Core/.NET Framework that helps your application generate document-like reports
https://www.fast-report.com
MIT License
2.71k stars 603 forks source link

Export html, font-family with compose name without '"'. #723

Open mundotv789123 opened 1 week ago

mundotv789123 commented 1 week ago

Describe the bug When export to HTML and the element is TextRender = "HtmlParagraph" the font-family with compose name, exemple: "Courier New"

To Reproduce Steps to reproduce the behavior:

  1. Create a fastreport layout
  2. Set the text element RenderType to "HtmlParagraph"
  3. Make on csharp code do export html
    var report = new Report();
    report.Load("report.frx");
    HTMLExport export = new() { Layers = true };
    export.EmbedPictures = true;
    export.Export(report, "output.html");

Expected behavior Open output.html and finde the generated element

Stacktrace

Screenshots image

Device (please complete the following information):

Additional context Add any other context about the problem here.

mundotv789123 commented 1 week ago

Pull Request to fix the bug: https://github.com/FastReports/FastReport/pull/724