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