M
mackcawthon
This is a question for Stephen Lebans. I recently downloaded the
TextWidthHeight function from your web site. I am using it to bottom
justify text in a text box in the header of a user-customizable
report. The user enters a column heading for each column in a dialog
box. Then I put this text in the column heading and use your function
to bottom justify the text. I have tested the report with various
different text strings. All of my test strings worked fine until I
entered the following: "The effective date of the contract". When I
entered this string, the last line of the corresponding column heading
containing the word, "contract", was cut off. The heading looked like
this:
The
effective
date of the
There were no carriage returns in the string. Both the width and
height of the column heading control are .9717". The font is Arial
9pt bold. I use Access 2003.
At first I thought that I had made a mistake and had not implemented
your function correctly. So as a crosscheck, I went to the Customer
form in the database that I downloaded from your site. I changed the
width of the testmemo control to .9717 and Arial 9pt bold. I entered
the problematic text in that field. When I clicked "Turn on
Autosizing", the resulting height was 900, the total lines were 4, and
all four lines of text were shown in the testmemo field as expected.
Then I went to your Report1 report and made similar changes to the
testmemo control there. When I ran the report, the resulting height
was 648 and the total lines were 3. The last line of text in the
control was cut off just as in my own report. So there seems to be
some kind of issue with using TextWidthHeight in a report, at least in
this specific situation.
TextWidthHeight function from your web site. I am using it to bottom
justify text in a text box in the header of a user-customizable
report. The user enters a column heading for each column in a dialog
box. Then I put this text in the column heading and use your function
to bottom justify the text. I have tested the report with various
different text strings. All of my test strings worked fine until I
entered the following: "The effective date of the contract". When I
entered this string, the last line of the corresponding column heading
containing the word, "contract", was cut off. The heading looked like
this:
The
effective
date of the
There were no carriage returns in the string. Both the width and
height of the column heading control are .9717". The font is Arial
9pt bold. I use Access 2003.
At first I thought that I had made a mistake and had not implemented
your function correctly. So as a crosscheck, I went to the Customer
form in the database that I downloaded from your site. I changed the
width of the testmemo control to .9717 and Arial 9pt bold. I entered
the problematic text in that field. When I clicked "Turn on
Autosizing", the resulting height was 900, the total lines were 4, and
all four lines of text were shown in the testmemo field as expected.
Then I went to your Report1 report and made similar changes to the
testmemo control there. When I ran the report, the resulting height
was 648 and the total lines were 3. The last line of text in the
control was cut off just as in my own report. So there seems to be
some kind of issue with using TextWidthHeight in a report, at least in
this specific situation.