Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Duplicate Report on same page. HOW ?
Message
 
À
13/07/2002 03:16:10
George Lechintan
Independent consultant
Sebes, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00678373
Message ID:
00678649
Vues:
12
>I'm trying to create a simple report with a header, some details and a group with some totals. It takes about half a page.
>Is it possible to print the same thing twice on the same page (regular size paper on Laser printer) ?
>
>Thank you.

If you want to print the exact same thing again .. you have to create a cursor that has two records for every one record in your source and an extra field called RECTYPE with "1" for the first record and "2" for the second record. Then you can create a Data Group on the RECTYPE field and put your header and footer information in the Data Group's header and footer instead of the page header and footer.

If you want both halves to have the exact same positioning and length, you'll have to pull some tricks to force the exact same number of detail lines or force some extra carriage returns by counting the number of detail lines printed and then using an object with something like REPLICATE(CHR(13), nRowsWanted - nRowsPrinted) in the expression.

Cathy
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform