Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control Blank Line Height in a Rich text control

Status
Not open for further replies.

lameid

Programmer
Jan 31, 2001
4,208
US
I am trying to be very granular in formatting. I use format events to place text into controls based on the data to create a letter.

Having said that, because of the conditional nature of constructing the text in code, it is not practical to just separate the text into more text boxes to control the spacing between the text that way. So here is hoping to avoid the impractical...

To keep this a little simpler I am only going put over simplified demo HTML and not any code that concatenates code together...
The only thing I have found to make the height shorter is the font size. I think I am targeting a "4 point" height for the spacing but of course the legacy font size that is supported starts at 8 point and goes up 2 points with every number increment.

Code:
<div>Some text</div>[/indent]
<div><font size=1><br></font></div>
<div>Some more text</div>


Is there some other way to specify the white space break than I have done with the br tag?
 
Use an inline style, eg:

[tt]<div>Some text</div>
<div style='padding:4pt 0pt 0pt 0pt;'>Some more text</div>
<div>Some final text</div>[/tt]
 
Sorry it took so long to get back, I forgot to check my spam folder. Hopefully gmail learned its lesson.

This does not work. I think it would work in a browser but apparently not Access's subset of HTML 1.0 supported in rich text.

I think the only real fix is to space the controls on the report like I mentioned in the OP. For now I think this is something we will live with as it no small undertaking to adjust the code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top