Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Part of the string - in Bold
Message
 
 
To
10/01/2001 13:38:05
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00461366
Message ID:
00461793
Views:
60
>Nadya,
>>> 1º What is Font/Form here?
> Font/Form is a exemple of REAL values of VisualFoxPro
> Font = Name and Size of the Font Letter
> Form = Sizes in pixels in the form
> Report = Sizes on the report
> MyFormula = Values gives my formula
>
>>> 2º What is the Factor?
> FACTOR is the number of report units per pixel. It's calculated as report units per inch (10,000) divided by pixels per inch (96).
> 10000/96 = 104.166666666667
>
>>> 3º To know :
> I tried with : Arial 1, 4, 9, 18, 24; Courier New 4, 9, 24; FoxFont 9; FoxPro Window Font 9; Arial Black 9; Book Antiqua 9.
>
> In your case, there was not that problem, but if you have to print is diferent fonts and sizes, then the problem exist.
> The problems puts when change the font and size, the size of the field have to change to.
>
>
>>> 4º To Resolve you problem ...
>
> One god way to resolve your problem, is to create two diferent fields, one with the name, the other with the rest to print. With my formula, you can get height and width for them separet. Then Calculate the first field is the original left, top position, then the second field field .....
> "Second.Left" = first.left + first.width + space you wish to give
> "Second.Top" = "First.Top"
>by this way you don't have overlapp nothing and i thing is the right way to do
>
>Nuno Brito

Hi Nuno,

Perhaps I worded my problem wrong: My problem is in the Report (VFP Report), I want first field be in Bold, the second is just plain. Buyer1 may have different length, i.g. Nuno Brito=10 Nadya Nosonovsky=16, IOW, for each record the position should be different. If I would display it on form or output to text file not using VFP Report Writer, I can use your formula. But in Report Writer I have to use Vlad's suggestion. Unfortunatelly, it still doesn't look right to me.

May be somebody can advise a Font, where this problem would not exist (e.g. all letters the same width)? I currently use Tahoma (I like this font).
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform