Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with UDF in Report Designer
Message
De
24/10/1996 08:57:18
 
 
À
23/10/1996 19:03:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00010815
Message ID:
00010855
Vues:
28
>>>I have designed a report to print customer invoices. I use a printer capable of printing two logical page on one physical pages (2 up). My problem is that if an invoice has an odd number of pages, I need to do an eject page so that the first page of the next invoice does not appear on the bottom half of the preceeding invoice. Someone from the Foxpro Usenet group suggested that I put an UDF in the summary band. I tried this and couldn't get it to work.
>>>
>>>Can anyone help?
>>what exactly did u try to do ?

I put the following code in the summary band of the report as a PRINT WHEN condition. I also tried the same operation in the group band of the report.

IIF(Check(),'','')

FUNCTION Check
IF _pageno%2=1
PAGE EJECT
RETURN .T.
ENDIF

RETURN .F.

Frank Mobley

>>u can probably just use an IIF on _PAGE (or _PAGENO) and issue an eject
>>
>>Arnon
>
>As far as I remember, EJECT is not working in VFP.
>
>Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform