Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Starting line number on a page
Message
De
20/06/2000 17:48:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00371591
Message ID:
00382440
Vues:
24
>I am printing to a laser printer. I need to conditionally start printing on a specific line on a report if a page overflow occurs within the group (ie... customer number,etc). IE... if the current page is at top of page and it is the rsult of anoverflow withina group, jump to a specific line and start printing. Is it possible in VFP 6 ?

Well, I did it like this in VFP 5 :

In the top of your report, you could put a memo field which contains a variable number of CR-LF's. Then allow the memo field to stretch if it's contents requires this (stretch with overflow option).

So in the beginning, e.g. gcSpace = ""

After the first page is printed, use an ON PAGE routine or so to change the variable gcSpace, like gcSpace=replicate(chr(13)+chr(10), nLinesToAdd).

If you use a smaller font for the memo field, you can make spaces that are smaller than 1 normal line height.

If the space is constant, you could just use conditional printing of the memo field in the report I think. So the PRINT WHEN for the field would be something like 'glIncludeEmptyLines=.T.'.

Marc
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform