Textbox with HTML tags ignores bold tag
Textbox with HTML tags ignores bold tag
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?
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?
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Textbox with HTML tags ignores bold tag
Hello,
Please try to check the last release build.
Thank you.
Please try to check the last release build.
Thank you.
Re: Textbox with HTML tags ignores bold tag
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.
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.
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Textbox with HTML tags ignores bold tag
Hello,
Please send us a sample report for analysis.
Thank you.
Please send us a sample report for analysis.
Thank you.
Re: Textbox with HTML tags ignores bold tag
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.
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.
- Attachments
-
- report-example.mrt
- (3.44 KiB) Downloaded 104 times
-
- desired-html-formatting.png (4.58 KiB) Viewed 1329 times
-
- actual-formatting.png (8.21 KiB) Viewed 1329 times
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Textbox with HTML tags ignores bold tag
Hello,
Please provide more detailed information on how to reproduce the issue.
Thank you.
Please provide more detailed information on how to reproduce the issue.
Thank you.
- Attachments
-
- Screenshot 2023-06-16 173240.png (131.56 KiB) Viewed 1308 times
Re: Textbox with HTML tags ignores bold tag
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.
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.
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Textbox with HTML tags ignores bold tag
Hello,
Ok. Please let us know if you will have any additional information.
Thank you.
Ok. Please let us know if you will have any additional information.
Thank you.
Re: Textbox with HTML tags ignores bold tag
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.
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.
-
- Posts: 6271
- Joined: Tue Mar 20, 2018 5:34 am
Re: Textbox with HTML tags ignores bold tag
Hello,
Thank you for the information.
Thank you for the information.