djcybex1
11-04-2001, 12:04 PM
very funny thing....
I am making print preview for my program.
I am using print object.
now...I use picture control for my print preview.
the default font for this control is Arial size 8.
I also declare font size in the code:
ObjPrint.FontSize = 8
i have put msgbox after it and it says that font size is 8.25 ??? why is that
thanx
Matej
Banjo
11-04-2001, 12:13 PM
I think that this is a peculiarity of that and some other fonts. Basically, it can only have certain sizes and 8.25 is the closest it can get to 8.
If you want to use any size then try using a TrueType font.
djcybex1
11-04-2001, 12:17 PM
Isn't Arial a true type font?
Matej
p.s. i just tested all the default fonts and it says that size is 8.25
Banjo
11-04-2001, 12:19 PM
I don't think so. At least it doesn't show up as one in the font list in wordpad.
Thinker
11-04-2001, 12:26 PM
To understand it one has to understand all the factors involved. Twips,
pixels, True-Type font scaling, etc. I don't claim to understand it all, but
here are a couple of posts about this from past questions.
[/url]
[url="http://www.visualbasicforum.com/bbs/showflat.php?Cat=&Board=visbas&Number=35974&page=&view=&sb=&o=&vc=1><font color=blue>Link to post about font sizes</font color=blue"] (http://www.visualbasicforum.com/bbs/showflat.php?Cat=&Board=visbas&Number=50906&page=&view=&sb=&o=&vc=1><font color=blue>Link to post about twips and pixels and screen resolution</font color=blue)
djcybex1
11-04-2001, 12:38 PM
ok thanx to all....
anyway I don't know why there are twips....isn't enough to be pixels, inches and centimeters???
grrr
Matej
Banjo
11-04-2001, 12:44 PM
As Thinker said, its to do with the conversion of a screen image to the printed page. Pixels, centimeters and inches are all fixed unit measuring systems. Twips is the dynamic linking measurement that allows you to display an image on any other device.
djcybex1
11-04-2001, 01:44 PM
anyway i opened this post because of this problem which i think it is connected with font size....
as i said before i am making print preview.
i use ratio from 10%-200% and multi page view as Word has.
i use this preview to display data report....
now...when it is in 100% ratio it displays 8 records on a page if i change it to 60% it diplays 11.
i use textheight to count report height that i know when to start new page.
i have put msgbox for textheight and if use 100% ratio it is 210 twips but if i use 60% ratio it is 90 twips...which is not 60% or 210...i believe textheight is somehow connected with font size...
and i also have put the msgbox for font size and if I use 100% it is 8.25 if i use 60% it is 4.5
i have attached a screenshot of 100% and 60% just to see how thing is displayed.
thanx again
Matej
p.s. i forgot to mention that if i use fixed text width (210) and use 60% ratio then it displays same number of records as on 100%....but with a lot of space at the bottom
djcybex1
11-06-2001, 03:25 PM
I have found out a solution..
Image1.Picture = Picture1.Image
Matej