INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Control Blank Line Height in a Rich text control

Control Blank Line Height in a Rich text control

(OP)
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?

RE: Control Blank Line Height in a Rich text control

Use an inline style, eg:

<div>Some text</div>
<div style='padding:4pt 0pt 0pt 0pt;'>Some more text</div>
<div>Some final text</div>

RE: Control Blank Line Height in a Rich text control

(OP)
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.

RE: Control Blank Line Height in a Rich text control

Drat ...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close