Home > Back-end >  FastReport each page shows a fixed number of rows and pages of design problems
FastReport each page shows a fixed number of rows and pages of design problems

Time:10-12

Reports of four parts, each page
The first part: the header, each page is printed
The second part: the master-slave table data
The third part: the master-slave table data (just like the second part, according to two)
The fourth part: the footer, each page printing, display page


Requires both detail data show only 5 lines, more than 5 lines automatically into the next page,

CodePudding user response:

Table 1
Data item 1
Data item 2
Data item 3
Data item 4
Data item 5
Table 2
Data item 1
Data item 2
Data item 3
Data item 4
Data item 5


Each table data up to five line, how to do?

CodePudding user response:

In data processing stage, each corresponding five master record from the record, even if he is complete from record is empty, print when you print directly

CodePudding user response:

Can master-slave table data in a property from the table detaildate1 Rowcount is set to 5, both master-slave table Settings, so fastreport is best

CodePudding user response:

LZ, you are actually just put a pair of master-slave mater, advocate the rowCount master set to 2, from detaildate set to 5, so you can get what you think of the effect

CodePudding user response:

LZ can stick to,,,,,,,

CodePudding user response:

Good complex, the original poster can convert FineReport statements, easily fixed number of records per page and paging, if 6 rows per page, more than paging, can add "condition attribute", set when a cell for the current record of the numerical formula for 6 times namely "$$$% 6=0," is for "line can be paged" after,

CodePudding user response:

The original poster is similar to print documents: first, the second copy of copy paper function, is the one repeat print documents,

Fastreport inside can not create a new page, you create a new page, the content of the first page copy to come over,

CodePudding user response:

Set Rowcount

CodePudding user response:

The building Lord, you try the grouping of Band, header PageHeader, two master-slave MasterData, footer with PageFooter, in each of the Events in the MasterData OnBeforePrint event to write the following code:
Pageline:=& lt; Line# & gt; The mod 5;
If (pageline=1) and (& lt; Line# & gt;> 1) then
Engine. Brought;
Can be

CodePudding user response:

The building Lord, you don't these two tables have what relation? If a field is the same, so simple

CodePudding user response:

references 9 f LUOLUO55 response:
the building Lord, you try the grouping of Band, header PageHeader, two master-slave MasterData, footer with PageFooter, in each of the Events in the MasterData OnBeforePrint event to write the following code:
Pageline:=& lt; Line# & gt; The mod 5;
If (pageline=1) and (& lt; Line# & gt;> 1) then
Engine. Brought;
Can


I encountered similar problems, report used in MasterData and DetailData family from table relationships, bind a MasterData, due to multiple DetailData, this can be achieved, now want to DetailData paging display, to the second page or after a few pages, the data are displayed in the MasterData, this how to implement,
  • Related