Solved

Prevent Word from truncating underlined spaced text

Posted on 2006-07-14
8
248 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

832 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