pro_imaj Posted October 9, 2022 Share Posted October 9, 2022 Hello, I am using fastreport version 6. I have the following HMTL text in the database. <font color="#0000ff">Test</font><div style=""><font color="#ff0000">Hello</font></div> When I read their docs, it says that adding frxMemo object and setting AllowHTMLTags := True will work fine, but the html command above returns the following result on the Fastreport screen. (I do not observe that the html is correct when I test it on online html systems as well.) Test<div style="">Hello</div> I understand from FastReport's description here that it supports some HTML commands. Does anyone have a solution for this. *The issue is indirectly related to unigui. It is related to FastReport, but the user wants to see the color etc. of the notes he took and I am looking for a solution to this. Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted October 10, 2022 Share Posted October 10, 2022 I have tested it and can support HTML text Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted October 10, 2022 Author Share Posted October 10, 2022 1 hour ago, 风吹小机机 said: I have tested it and can support HTML text Could it be related to the version, what version do you have? I observe the problem in my own tests. Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted October 10, 2022 Share Posted October 10, 2022 17 minutes ago, pro_imaj said: Could it be related to the version, what version do you have? I observe the problem in my own tests. Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted October 10, 2022 Share Posted October 10, 2022 Just now, 风吹小机机 said: <font color="#0000ff">Test</font> <font color="#ff0000">Hello</font> Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted October 10, 2022 Author Share Posted October 10, 2022 2 minutes ago, 风吹小机机 said: <font color="#0000ff">Test</font> <font color="#ff0000">Hello</font> You removed the divs, but the UniDBHTMLMemo object adds them automatically. If you add it as I wrote here, you can see the error. <font color="#0000ff">Test</font><div style=""><font color="#ff0000">Hello</font></div> Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted October 10, 2022 Share Posted October 10, 2022 Just now, pro_imaj said: You removed the divs, but the UniDBHTMLMemo object adds them automatically. If you add it as I wrote here, you can see the error. <font color="#0000ff">Test</font><div style=""><font color="#ff0000">Hello</font></div> It only indicates that FR only supports simple HTML tags Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted October 10, 2022 Author Share Posted October 10, 2022 12 minutes ago, 风吹小机机 said: It only indicates that FR only supports simple HTML tags Yes, I'm already looking for a solution for this. UniDBHTMLMemo saves to database with Div, when I try to display it with Fastreport, there is a problem, how can I solve this problem, I do not create HTML text, UniDBHTMLMemo object creates automatically. Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted October 10, 2022 Share Posted October 10, 2022 Just now, pro_imaj said: Yes, I'm already looking for a solution for this. UniDBHTMLMemo saves to database with Div, when I try to display it with Fastreport, there is a problem, how can I solve this problem, I do not create HTML text, UniDBHTMLMemo object creates automatically. Add more query fields to process <div style=""> replace enter </div> Replace ‘’ Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted October 10, 2022 Author Share Posted October 10, 2022 9 minutes ago, 风吹小机机 said: Add more query fields to process <div style=""> replace enter </div> Replace ‘’ I realized that the problem is not just with the div. There is a test where I average the following articles, this never happens. <div style="text-align: center;"><span style="color: rgb(0, 0, 255);">Test Description</span></div><div style="text-align: center;"><font color="#ff0000">Hello</font> </div> What should I do, how can I show all HTML commands to Fastreport correctly. Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted October 11, 2022 Share Posted October 11, 2022 16 hours ago, pro_imaj said: I realized that the problem is not just with the div. There is a test where I average the following articles, this never happens. <div style="text-align: center;"><span style="color: rgb(0, 0, 255);">Test Description</span></div><div style="text-align: center;"><font color="#ff0000">Hello</font> </div> What should I do, how can I show all HTML commands to Fastreport correctly. no way out,Or ask the author of fastreport Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.