Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right aligning report labels and fields at run time
Message
From
27/01/2007 20:38:23
 
 
To
26/01/2007 19:04:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01189824
Message ID:
01189887
Views:
14
Hi Dragan, I wish that would do it. I changed the fonts to Lucida Console, also non proportional, and made fields are right aligned. The problem has to do with the fact that labels are presented at design time with one method and at run time with another (DGI vs DGI+, I believe). The one at run time makes labels longer. Since they start in the correct position the result is they end further to the right. Fields do not have that problem.

I can move labels at run time a calculated amount to the left, but I think VFP should show labels in the report designer with the same length they will have at run time. It may be too late, since the VFP team does not want to open the VFP file. This is one of the few shortcomings I find in the language we all love.

Alex



>>Does anybody else find it annoying that the VFP9 report designer is not WYSIWYG?
>>
>>I brought over some reports from FoxPro DOS and it is very frustrating that at design time the table headers are right aligned with figures but at view time they are not! For example the following case:
>>
>>At design time:
>>
>>.
>>                           Hours
>>       Name               Worked   Salary
>>       John Doe            35.50   500.00
>>
>>At run time: The name title and data left align correctly, but the title for Hours and Salary are not right aligned with the data.
>>
>>Also if you have a bunch of labels like this, at run time they are *not* right aligned. Also since the labels are longer ar run time than at design time, if the label is long sometimes it covers part of the corrresponding field value.
>>
>>
>>.
>>   Number: XXXXXX
>>     Name: XXXXXXXXXXX
>>  Address: XXXXXXXXXXX
>>
>
>If it's a converted report, the converter assumes Courier (i.e. monospaced font) and leaves all the fields left-aligned. If you've picked any other font, the converter doesn't right-align them. You should just select them all in the report editor, and set them to be right-aligned.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform