Page 1 of 1
Textbox with HTML tags ignores bold tag
Posted: Thu Jun 15, 2023 6:44 am
by imaltont
Hello.
A textbox with the property "Allow HTML Tags" set to true will in the .NET version properly render (some) HTML tags, like bold, italic, underscore, break etc. For the JS version this is also true, with the exception of bold, which seems to not render properly in the report viewer. It still renders properly when exported to Word or Excel, but not HTML or PDF (this cuts even more of the tags). Is this intended or the expected way things should work, or is there something wrong with the handling of the bold HTML tag in the JS viewer?
Re: Textbox with HTML tags ignores bold tag
Posted: Thu Jun 15, 2023 8:06 pm
by Lech Kulikowski
Hello,
Please try to check the last release build.
Thank you.
Re: Textbox with HTML tags ignores bold tag
Posted: Fri Jun 16, 2023 5:40 am
by imaltont
Hello.
Latest stable release seems to fix it when saving/printing to PDF, but it does still not show in the report viewer. This one is also missing the dot prefix you usually see on list elements.
Re: Textbox with HTML tags ignores bold tag
Posted: Fri Jun 16, 2023 8:36 am
by Lech Kulikowski
Hello,
Please send us a sample report for analysis.
Thank you.
Re: Textbox with HTML tags ignores bold tag
Posted: Fri Jun 16, 2023 9:10 am
by imaltont
Hello.
The actual-formatting image is from and older version, but the same problem was there in the newest report viewer as well. The newest were also missing the dots on the bullet list. The desired is from the .NET version. report-example.mrt is the same report that was rendered in both.
Re: Textbox with HTML tags ignores bold tag
Posted: Fri Jun 16, 2023 3:33 pm
by Lech Kulikowski
Hello,
Please provide more detailed information on how to reproduce the issue.
Thank you.
Re: Textbox with HTML tags ignores bold tag
Posted: Tue Jun 20, 2023 7:54 am
by imaltont
Hello,
I am also having some trouble reproducing it outside out application, so there is probably something going on with our setup. It seems the bold and lists are represented properly, both on the newest version and the older one we are currently running when doing a minimal setup. In our application, setting renderAfterCreate to true will also make the html tags render properly (but has other issues with our setup). There seems to be something going wrong between the initialization and the manual call to renderHtml, as just setting renderAfterCreate to false in a minimal example will still render properly.
I will come back with more when/if I manage to create a proper minimal example and/or a solution.
Re: Textbox with HTML tags ignores bold tag
Posted: Tue Jun 20, 2023 10:40 pm
by Lech Kulikowski
Hello,
Ok. Please let us know if you will have any additional information.
Thank you.
Re: Textbox with HTML tags ignores bold tag
Posted: Wed Jun 21, 2023 7:35 am
by imaltont
Hello,
The problem was an inherrited CSS font-weight from far back on the container the report was rendered to with renderHtml("containerName"). I don't know if it is the intended behavior or not for stimulsoft's rendering to overwrite such settings or not, but setting the container to have font-weight: bold fixed it in this case.
Re: Textbox with HTML tags ignores bold tag
Posted: Thu Jun 22, 2023 8:35 pm
by Lech Kulikowski
Hello,
Thank you for the information.