Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Aligning preprinted forms
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00543697
Message ID:
00773519
Vues:
7
The only way to do this in VFP is to hack the FRX file prior to printing the report. Start by copying the FRX to a temporary file and then adjust records as follows:

- The first record: adjust the HPOS with your left margin offset.
- Locate the record OBJTYPE = 9 AND OBJCODE = 1 (Page Header): Adjust the height with the top margin offset.
- For all records with an OBJTYPE of 5, 6, 7, 8, or 17: Adjust the VPOS with the top margin offset.

If you have access to my book, all the code is in chapter 11.

I hope this helps,
Cathy

>I have an application that prints data on a pre-printed insurance form (UB92). Though the alignment is fine at one location / printer it is "off a bit" at another location. I cannot simply move the fields in the report because I need the report to be correct universally. Is there a way I can prompt the user (and store the data) to enter +/- beginning margins (top/left) and have the form adjust according to these parameters. Thanks in advance...
>
>
>Jamie Flick
>Micro League Software
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