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

Comments

  • edited 2:34AM
    Hi psenka,

    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):
            Report1.Load("C:\DefaultReport.frx")
            Report1.Prepare()
            Report1.LoadPrepared("C:\RTFPages.fpx")
            Report1.Prepare(True)
            Report1.ShowPrepared()
    

    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
  • edited 2:34AM
    Hi Keeper, thank you for your reply. Your tip partly helped because the app does not spend the time on the report.Prepare() method but there is still quite a big time spent on the report.Export(pdfExport, stream) but I suppose this cannot be cut more (I am in ASP.NET and generating pdf file).
    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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.