Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing in page header after page header done
Message
De
10/09/2003 02:23:56
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00824477
Message ID:
00827747
Vues:
17
Thanks, I'll try your suggestion.

>Unfortunately, the only solution I can think of is doing a double pass. You can use the OnExit expression in the Group Footer to call a method that saves the current page number in the invoice header table or a temporary table. Then during the second pass, you can print the special mark if _PAGENO = TheSavedPageNumber.
>
>Cathy
>
>
>>Hi All,
>>
>>I have a tricky situation in VFP6.0. I'm working on an application that prints invoices and the invoices are automatically placed into envelopes by a 'stuffing' machine. The machine works by identifying a mark in the page header and when it encounters a second mark in the page header it knows that this is the last page for the invoice. If there is only one page for the invoice both marks appear in the page header of that page, if there are multiple pages for the invoice a mark appears on the page header of the first page and another mark appears on the page header of the last page for the invoice.
>>
>>My question is this. How can I identify if an invoice will fit on 1 or multiple pages before the report is printed? I can identify the last transaction to print in the invoice but by that stage it's too late because the page header has already printed. I print the invoice from a cursor and can set a flag on each record to indicate if it's the last transaction for the invoice. Problem is that I don't know how many lines are going to print on the invoice because each line can print a memo which means if I have 10 transactions in my invoice I could print more that 10 detail lines because of the memo.
>>
>>One possible solution I can think of is to print the invoice to a file before sending it to the printer and that way I know how many pages will print for the invoice using _PAGENO. I don't really want to do this if I don't have to. Does anyone have any other suggestions?
>>
>>Thanks,
>>Gavin.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform