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
Solved

Prevent Word from truncating underlined spaced text

Posted on 2006-07-14
8
254 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

 
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

792 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