Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detail in one page
Message
From
07/11/2001 06:34:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00578324
Message ID:
00578411
Views:
28
If you have any way to calculate the length of each record, write some commands (perhaps, a loop), to group by page number.
* Prepare data for report, and then:
lnPageNo = 1
lnLineNo = 1
scan
  lnLineNo = lnLineNo + NumberOfLines && NumberOfLines is a field in prepared data
  if lnLineNo >= 60
    lnLineNo = 1
    lnPageNo = lnPageNo + 1
  endif
  replace PageNumber with lnPageNo
endscan
HTH, Hilmar.

>Hi, thanks for reply.
>I don't understand how apply what you say.
>
>I don't know with anticipation the length for a record.
>
>Supouse that I have 10 lines for page
>
>The first record use 3 lines, if the second record use 7 or less, then print in the same page, else print in the next page
>
>TIA
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform