Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Placing text at bottom of page???
Message
 
À
15/12/2004 12:30:24
Allen Hanna
H. A. Hanna Associates
Indianola, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00969521
Message ID:
00969530
Vues:
14
Use the Page Footer and some Print When logic to anchor it to the bottom of the page. Of course, this means that for all pages that aren't the last page, you are wasting that real estate.

Create a report variable called rlEnd and set it to .f.. In the On Exit expression of the Summary band (or a Data Group if you have one defined), use this:

_VFP.SetVar('rlEnd', .t.)

In the Page Footer, use rlEnd as the Print When logic so it only prints on the last page.

If you don't want to waste the space at the bottom of each page ... AND ... you don't have stretchable fields on the report ... there is another way to manually calculate how many detail lines fit on a page and then force dummy line feeds with REPLICATE(CHR(13), xxx) to make the information start where you want.

Another alternative is to use VFP 9 when it comes out because there is a way to use a Report Listener to fudge the position of items and get the summary to start where you want.



>Hello,
>
>I'm doing a VFP6 report form that can have any number of detail lines in it and can therefor be any number of pages. I have some boiler-plate text (payment terms, etc.) that must go on the last page ONLY and be positioned 1/2 inch from the bottom. I'm not sure how to do that. I can get in on the last page with an end-of-report summary, but a summary won't anchor to page bottom as far as I know.
>
>Allen
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