Home > Back-end >  How FastReport in on the basis of field data to determine the print the number of pages
How FastReport in on the basis of field data to determine the print the number of pages

Time:11-17

Such as the data source is read out
The name of the material, material orders packing quantity
A01 lighters, 1000, 99

How to print out the following
the condition of theThe name of the material, material orders the number of pages using the
A01 lighters, 1000, 99/a total of 11 pages 1
A01 lighters, 1000, 99/a total of 11 pages 2
A01 lighters, 1000, 99/a total of 11 pages 3
A01 lighters on page 11 1000 99 page 4/
A01 lighters page 5/a total of 11, 1000, 99 pp.
A01 lighters, 1000, 99/a total of 11 pages 6
A01 lighters, 1000, 99/a total of 11 pages 7
1000 99 8 A01 lighter/a total of 11 pages
A01 lighters on page 9, 1000, 99/a total of 11 page
A01 lighters, 1000, 99/a total of 11 pages 10
1000 10 11 A01 lighter/a total of 11 pages

CodePudding user response:

Online, etc., urgent urgent!!!!!!

CodePudding user response:

This problem I also met,
Only by calculation,

The total number of article/article page number with the remainder again to decide whether to add one

CodePudding user response:

refer to the original poster bingjue1234 response:
name of material, material orders the number of pages using the
A01 lighters, 1000, 99/a total of 11 pages 1
A01 lighters, 1000, 99/a total of 11 pages 2
A01 lighters, 1000, 99/a total of 11 pages 3
A01 lighters on page 11 1000 99 page 4/
A01 lighters page 5/a total of 11, 1000, 99 pp.
A01 lighters, 1000, 99/a total of 11 pages 6
A01 lighters, 1000, 99/a total of 11 pages 7
1000 99 8 A01 lighter/a total of 11 pages
A01 lighters on page 9, 1000, 99/a total of 11 page
A01 lighters, 1000, 99/a total of 11 pages 10
A01 lighter 1000 10/a total of 11 pages 11

The above content, is printed on a piece of paper? Or print to 11 piece of paper?
Had better be in database to build a temporary table, the result is generated by the program loop, and print,

CodePudding user response:

Is printed to 11 above

CodePudding user response:

Based on the database, direct the DATALIST

CodePudding user response:

Long time no make this
Fr and word is these a bit similar, have system variables (not necessarily the term) can reflect the total of how many pages and how many pages of the current

CodePudding user response:

In the system properties [page] and [TotalPages#]

CodePudding user response:

Page number is generally in the PreView is accurate.

Each printer will have error, precision printing paper and equipment may not be the same

The algorithm will not be universal, right

Not to calculate words, you might as well make a sample and measure the width of each word, such as the height of each row, and then according to these parameters to their matching calculation procedure, draw a page
FastReport used, based on the experience of QuickRep, the report didn't Prepare before the page number/the total number of pages not normal

CodePudding user response:

Didn't understand the meaning of the original poster, 11 data is coming along?

CodePudding user response:

The meaning of the original poster is the order of 1000 pieces of goods to install packing quantity is divided into several box, each box a record

CodePudding user response:

Installation - & gt; According to the
  • Related