Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programaticaly alignment of report field
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00972003
Message ID:
00972061
Views:
16
What you need to do is add the field to the report twice. Set one to center and the Print When logic as needed. Set the other to left and set the print when logic accordingly.

Cathy


>Dear Experts
>
>There is a character type field on report.
>I want to alignment that field with following conditions
>
>assume that "field1" is report field
>
>
>IF LEN(ALLTRIM(field1))<30
>field1.alignment=center && center justify
>else
>field1.alignment=right && right justify
>endif
>
>
>Is it possible, if yes then please help me.
>
>Thanks in advance
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
Previous
Reply
Map
View

Click here to load this message in the networking platform