Large rich text
Hello all.
I have a 15 pages long formatted text in MS Word and I need to make this as a part of FastReport result. The problem is that when I copy+paste this into the rich text field the response time of the designer goes down so it is difficult to continue working but the main problem for the users is that the creating time of the report increases significantly. When I added this text into the text field without formatting, the response and the creating time of the report is OK so the problem is when rendering the huge rich text field.
As this text is completely static, I tried to swith the AllowExpressions attribute to false but it did not help.
It seems that I can use the simple text object with the HTML support instead of the rich text field but it supports only few html tags and will require a lot of hand work to format the documents manually. Do you have any experience about this kind of problem or is there any answer to this problem (if this topic is somewhere mentioned and resolved here, please give me the link). Thank you, Petr
I have a 15 pages long formatted text in MS Word and I need to make this as a part of FastReport result. The problem is that when I copy+paste this into the rich text field the response time of the designer goes down so it is difficult to continue working but the main problem for the users is that the creating time of the report increases significantly. When I added this text into the text field without formatting, the response and the creating time of the report is OK so the problem is when rendering the huge rich text field.
As this text is completely static, I tried to swith the AllowExpressions attribute to false but it did not help.
It seems that I can use the simple text object with the HTML support instead of the rich text field but it supports only few html tags and will require a lot of hand work to format the documents manually. Do you have any experience about this kind of problem or is there any answer to this problem (if this topic is somewhere mentioned and resolved here, please give me the link). Thank you, Petr
Comments
no idea about the RTF Component, but just an idea (as you said, these 15 pages are completely static):
- Add those 15 RTF pages to a different report (just those 15 pages)
- Save the report as a PreparedReport (this can be done in the preview, first option under save)
- When these 15 page should be displayed, do this via LoadPrepared, Prepare(True):
This way your users would edit just DefaultReport (if that is ok with you. normally static 15 pages are not needed in the designer, if I understand you correctly...) and the RTFPages.fpx file is fixed.
See http://www.fast-report.com/public_download...erManual-en.pdf (p. 14).
Best Regards,
Keeper
The reason is probably because the result of the rich text block is rendered as an image and not the text (maybe it is mentioned somwhere in the documentation but I did not know about it). I tried different settings but the engine always processes the rich text field as the image. I tried to change my pdf export to docx and rtf export but the rich text part is still rendered as an image.
Here is set of my other questions:
Is it possible to set that the rich text part will be rendered as a text and not as an image?
Because the rich text is rendered as image, the result pdf file is quite big. Are there any other options for lowering the result file size except of the Compressed and RichTextQuality property?
How can I include the "fpx" (prepared) report as a part of another "frx" report? The code above appends it to the end of the previous report.
Thank you again.