Justidirect issue:
1) As per the documentation, the original TextBox control's Font color
must be set to WHITE.
2) Certain Postscript Printer Drivers will not work with JustiDirect.
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
Marsh;
Thank You.
The ftxtHeight works and works correctly. Incorporated Lebans code.
It is more than is needed and when I learn more I will pare some of it
out.
Right now am also trying to incorporate Lebans JustiDirect into the
Report's
code also. It's "almost" working.
Text is repeating twice in the rpt's control. (Text displayed on top
of
text), Once Justified the other is not.
Believe it has something to do with the functions calling the printer.
Thank You for all Your Help!!!
Andy
Andy wrote:
The TxtBox height on the Report is 2.625". Plenty of room for
multiple
lines.
Did try lebans.com fTxtHeight. One is for Forms only, another
increases/decreases the height of the txtBox in the Report. The
box
height
cannot exceed 2.625"
Oh bleep!! Dumb, dumb, dumb, I had a line of code in the
wrong place! Dumb, dumb . . .
For intFS = 14 To 8 Step -1
Me.txtProdDescript.FontSize = intFS
If fTextHeight(Me.txtProdDescript) _
< Me.txtProdDescript.Height Then Exit For
Next intFS
Make sure you're using the TextHeightWidth download at
http://www.lebans.com/textwidth-height.htm
which works fine for reports too.
--
Marsh
MVP [MS Access]
Marsh Your answer seems to be more versital, but it still goes
directly
to
the lowest FontSize:
Dim intFS As Integer
' With txtProdDescript
' .FontName = "ARIAL"
' End With
' Tried the above because the code below changes the Font
that is
normally used.
' It didn't work either
For intFS = 14 To 8 Step -1
If TextHeight(Me.txtProdDescript) <
Me.txtProdDescript.Height
Then
Exit
For
' Greater Than stays at the largest FontSize
' For intFS = 14 To 8 Step -1
' If TextHeight(Me.txtProdDescript) >
Me.txtProdDescript.Height
Then
Exit
For
' Less Than Goes directly to Smallest FontSize
' Even reversed it.
' For intFS = 8 To 14 Step 1
' If TextHeight(Me.txtProdDescript) <
Me.txtProdDescript.Height
Then
Exit
For
' Less Than goes directly to the smallest FontSize
' For intFS = 8 To 14 Step 1
' If TextHeight(Me.txtProdDescript) >
Me.txtProdDescript.Height
Then
Exit
For
' Greater Than goes directly to the largest FontSize
"Marshall Barton" wrote
Your test statistics imply that the text box height is not
tall enough for even one line, please double check that.
I also see that you are not using Stephen Lebans fTextHeight
function, but have elected to use the built in TextHeight
method. The built in method has many flaws when used for
this purpose and, while I would not expect the results you
are seeing, I definitely expect it to fail to meet your
needs.