Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi-page Report
Message
De
21/08/1998 14:39:31
 
 
À
20/08/1998 15:19:01
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00128150
Message ID:
00128870
Vues:
17
>>I have a report that deals with a single record. I want it to be a two page report, but _I_ want to say where the page break is. A few questions:
>>
>>Is there a better way to handle a report that is a single record report (and pre-processed data in memvars) ?
>>
>>How can I force a Page break?
>>
>>Any way I can control the print driver in code (I want to select duplexing, if it is an option) ?
>
>You may try to call a function which will return an empty string, but force eject:
>
>Function EjectIf
>lparam pcCondition
>if eval(pcCondition)
> eject
>endif
>return ""
>
>I'm not sure your report will reprint the header, though. Haven't tried this for a long time.

I don't know if that will work. In older (2.6 and before) if you did an eject in a user defined function, the report still had it's own internal counters for lines on a page, etc. This caused problems like getting only partial pages later on in the report, when the counters determined there should be an eject. AFAIK, there's no way to access those internal report counters. It may work OK in VFP 5.0, though, I haven't tried anything like that lately.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform