Information générale
Catégorie:
Gestionnaire de rapports & Rapports
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement