Hi,
Iam trying to print a card through the printer object. The card is approx 3.5 inch long. Now the problem is that if I try to Print a long Text(Which comes up from DB, as entered by the user), part of the text is not printed on the card. The Font iam using is Arial and size is 20.
Now i want to reduce the size of the font till it fits into this paper size.
This is the code Iam trying to use
P.DrawMode = 13
P.FontSize = 20
For i = 20 To 8 Step -2
If P.TextWidth(C.PoolName) >= P.Width Then
P.FontSize = i
Else
Exit For
End If
Next
but somehow a Fontsize of 18 prints the Text in the card, though P.TextWidth(C.PoolName) shows no of Twips to be 12000 and No of Twips possible in the card(accroding to the length) is 4944
How is it possible....
Thanks for help
Sunil
Iam trying to print a card through the printer object. The card is approx 3.5 inch long. Now the problem is that if I try to Print a long Text(Which comes up from DB, as entered by the user), part of the text is not printed on the card. The Font iam using is Arial and size is 20.
Now i want to reduce the size of the font till it fits into this paper size.
This is the code Iam trying to use
P.DrawMode = 13
P.FontSize = 20
For i = 20 To 8 Step -2
If P.TextWidth(C.PoolName) >= P.Width Then
P.FontSize = i
Else
Exit For
End If
Next
but somehow a Fontsize of 18 prints the Text in the card, though P.TextWidth(C.PoolName) shows no of Twips to be 12000 and No of Twips possible in the card(accroding to the length) is 4944
How is it possible....
Thanks for help
Sunil