Jump to content
Sign in to follow this  
Squall_FF8

Advise for building a document

Recommended Posts

Hey guys,
I'm trying to make a document in FastReport that will look like:
  * Contract Text - RichText with some data fields. text could be huge (more then a page!!!)
  * Small Table - TableObject with 2 columns for Contract Objects (max 4 lines)
  * Contract Text - same as above.

I did that in FastReport like:
  * ReportTitle (logo + ...)
  * MasterData (band)
    - RichText
    - TableObject with event for Manual Build and code copied from Demo (how to make TableObject display DB)
    - RichText
  * PageFooter (for Page Numbers)

And it didnt work:
 - The TableObject is not shown!. I suspect Manual build is not called. If I put it directly on Page1 it works. It works with other bands too, just MasterData - no.
You would think - just remove MasterData, but:
 - Since RichText is huge, I can make it print on several pages only inside MasterData. Is there any other ways?

Could you guys advise me? How you would implement such document? If it matters, my version is 2023.2. 

Edited by Squall_FF8

Share this post


Link to post

We are still using it, but nobody has touched that code in years.

 

I honestly wouldn't use it again. For our next product, we will probably go straight to html and then print or PDF-export straight from a WebView.

Share this post


Link to post

Can't you create a complete Richtext (RichText+TabelText+RichText) during the process and add the whole RichText on the Band?

Share this post


Link to post
On 6/13/2025 at 2:43 PM, Squall_FF8 said:

And it didnt work:
 - The TableObject is not shown!

What didn't work?

The MasterData is not shown or only TableObiect?

Have you set MasterData.DataSet? Do you have something in that table?

And you want to print that RishText for every line in that MasterData table?

Share this post


Link to post

Reading again I'm asking myself if you know what MasterData is. You connect MasterData to a table and MastedData will be printed for every line in that table.

To put a TableObiect into a MasterData is somehow strange for me. You will print a table for every record of a table.

Share this post


Link to post

I suppose you want something like this:

 

  * ReportTitle (logo + ...)

  * Header
    - RichText

    - Column names (if you need them)
  * MasterData connected to the table
    - table fields that will be printed for every table record

  * Footer
    - RichText
  * PageFooter (for Page Numbers)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×