Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Prevent Word from truncating underlined spaced text

Posted on 2006-07-14
8
Medium Priority
?
276 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
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!

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

604 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