473,385 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

RichTextBox displays jagged formatted text, why?

Hello,

Wondering if someone might help on this...

I write out formatted text to a file then load it into a RichTextBox.
However the text that is formatted into a table displays like this below, all jagged. When I view the actual file, it is formatted properly and when I copy the text from the RT Box it is also formatted, it just displays wrong. Any ideas?? Is there3 a setting I'm missing?

Header1 Header2 Header3
ABCD 888 77766
DEFGHI 555 99999
XYZ 2222 5555555
Jun 22 '07 #1
1 1383
nateraaaa
663 Expert 512MB
Hello,

Wondering if someone might help on this...

I write out formatted text to a file then load it into a RichTextBox.
However the text that is formatted into a table displays like this below, all jagged. When I view the actual file, it is formatted properly and when I copy the text from the RT Box it is also formatted, it just displays wrong. Any ideas?? Is there3 a setting I'm missing?

Header1 Header2 Header3
ABCD 888 77766
DEFGHI 555 99999
XYZ 2222 5555555
When this text is converted to html it ignores the whitespace. if you want to conserve the whitespace you will need to add code that will convert " " to "&nbsp" which is the html character for a space.

Give this a try and let us know if this works for you.

Nathan
Jun 22 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Henk ten Bos | last post by:
Hi All, i have an application written in VB6 that uses a richtextbox to display RTF-formatted text. On most computers the program runs fine, but I have some users who 1. either get no content...
3
by: AttiDude | last post by:
Hi, I have some difficulties when adding text to a (multiline)richtextbox, to change the color of that line only. Changing colors on parts of text you want, need to be selected to change color. So...
1
by: Eric | last post by:
Using the 1.1 framework. We are using a newly created instance of a RichTextBox Class in our server code to manipulate RTF that is stored in the database. To clarify, we are not using or...
0
by: y2k692hu | last post by:
Hello I am trying to run this and I keep getting a "SystemNullReferenceException: Object reference not set to instance of an object" error. I have three menu items bold, italic and underline. When i...
0
by: gplana | last post by:
Hi all. I'm trying to create an application with a RichTextBox control in order to let user introduce a formatted text, and then I generate a word2007 .docx document with that text. I added the...
0
by: Jim | last post by:
Hiw do I combind the formatted text of two richtextboxs into formatted text of a third richtextbox?
0
by: shivaranjaniadimulam21 | last post by:
Hello, I need to implement an email editor control in my application. The control should allow me to type in text in any format,font etc. This i have managed using the richtextbox control...
4
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a multiline RichTextBox that I use for data logging. I'm concerned about how the AppendText method reacts when over time the maximum number of characters have been added. Do the...
0
by: pzero24 | last post by:
I am trying to add a color table to the RTF of my RichTextBox control when I instantiate the control. The problem is that the color table will not stay there. The only time it stays is if I have text...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.