Jump to content

About Displaying HTML in Fast Report.


pro_imaj

Recommended Posts

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.

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ‘’

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...