Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

Prevent Word from truncating underlined spaced text

I have an app where I create an rtf file and then display it in the richtextbox control. Part of the wording is underlined with a trailing space. The code for the file looks something like this:  
    " blah blah blah " & space$(15) & " \ulnone\par"
If this file is printed from wordpad, then the underlining continues through the 15 spaces; however, if someone opens this in Microsoft Word, the underlining only goes through the last "blah".  What can I do to make the underlining stay the same if someone opens this file in Word?
0
Mach1pro
Asked:
Mach1pro
  • 4
  • 2
1 Solution
 
justchat_1Commented:
add \enspace after the spaces...
blah blah blah               \enspace\ulnone\par
0
 
justchat_1Commented:
Thats the actual RTF code...
0
 
Mach1proAuthor Commented:
for some reason your code didn't work. the lines were still truncated when opened in Word
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
justchat_1Commented:
Make sure all the other RTF formatting is there...
0
 
Mach1proAuthor Commented:
I've solved my own problem simply by replacing the Space$'s with underline keystrokes "_".
I need to close this question out and can't give myself the points.
0
 
justchat_1Commented:
You can ask for a refund in community support...
0
 
CetusMODCommented:
PAQed with points refunded (400)

CetusMOD
Community Support Moderator
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now