Solved

Prevent Word from truncating underlined spaced text

Posted on 2006-07-14
8
261 Views
Last Modified: 2010-04-30
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
Comment
Question by:Mach1pro
  • 4
  • 2
8 Comments
 
LVL 9

Expert Comment

by:justchat_1
ID: 17108841
add \enspace after the spaces...
blah blah blah               \enspace\ulnone\par
0
 
LVL 9

Expert Comment

by:justchat_1
ID: 17118208
Thats the actual RTF code...
0
 
LVL 6

Author Comment

by:Mach1pro
ID: 17136951
for some reason your code didn't work. the lines were still truncated when opened in Word
0
Industry Leaders: 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!

 
LVL 9

Expert Comment

by:justchat_1
ID: 17140664
Make sure all the other RTF formatting is there...
0
 
LVL 6

Author Comment

by:Mach1pro
ID: 17159894
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
 
LVL 9

Expert Comment

by:justchat_1
ID: 17161536
You can ask for a refund in community support...
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 17371151
PAQed with points refunded (400)

CetusMOD
Community Support Moderator
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question