Best practise for large rich texts

edited 10:32AM in FastReport 4.0
Dear all, I need to create the report which contains some small header and footer filled by the application data but the main part is static formatted text. The whole document has about 20 pages. When I create the report using the formatted text field it 1) takes very long time to generate because 2) the formatted text is rendered as an image (so user cannot copy the formatted text) and 3) the result file is huge (about 1MB per page with print optimize option, without print optimize it is smaller but the text has very poor quality).
What is the best way to create this kind of report? Or am I missing some FR feature which enables to create the rich text content not as an image?
Can I for example create in advance a PDF static part in some other sowftware and include it into the final report?
If this problem is solved somewhere with some working example, please give me the link.
Thank you, Petr

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:32AM
    my own experience has been to not use the pdf export but to print the preview using nuances pdf printer driver.
  • edited 10:32AM
    gordk wrote: »
    my own experience has been to not use the pdf export but to print the preview using nuances pdf printer driver.
    Can one use this pdf printer driver to manage documents which are prepared, not previewed but e-mailed?
    For example creating a PDF of an invoice which gets sent to a customer. There is no necessity to see that on the screen.
  • gordkgordk St.Catherines On. Canada.
    edited March 2014
    ive never tried it that way, but i beleive it may be possible possible the only drawback is you need to see the printer driver dialog to set the email adress
    ypo can preset the properties of the printer driver to send emails but this just brings up the default mail program where manually enter email addresses or select from address book. so it is not good for large quantities.
    the other option is to email fp3 files and supply the end user with an fp3 viewer.
  • edited 10:32AM
    Hi guys, thank you for your reply. Nuance seems to be 3rd party project so no chance to use FR for this situation according to your experience? Or am I missing something? How to replace our current code with pdf export?
    Thank you again for your help.

    PDFExport pdfExport = new PDFExport();
    ...
    Report report = new Report();
    ...
    MemoryStream stream = new MemoryStream();
    report.Export(pdfExport, stream);
    ...

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.