By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,693 Members | 1,650 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,693 IT Pros & Developers. It's quick & easy.

Rich Text Numbering

100+
P: 171
Hi All
I have a form with richtext memo field.
When I try to do a numbering the lines in the same numbers are shown as below.
1.This is a long line which shows not in an aligned manner as you can see that the text in the next line is below the number but I want to show that below the previous lines text.
2.This is a second line but it is not extended upto another line.
3.This is also a long line which will also shows the same way how the first line was showing so and after doing the numbering I cannot keep the cursor at the beginning of the line try moving the line with the space bar. Is ther a way we can do the desired result by selecting all the text in this memo field and do a numbering or bulleting same as in MS word.
The result I am looking is as below:
  1. This is a long line which shows in an aligned manner as you can see that the text in the next line is below the previous lines text not same as the line 1 i have posted above.
Hope I have explained correctly
Feb 9 '15 #1
Share this Question
Share on Google+
9 Replies


jforbes
Expert 100+
P: 1,107
I think that is just the way a TextBox handles HTML. You could try using an ActiveX control like a Microsoft Web Browser or creating a Custom Control in .NET, but I wouldn't recommend it.
Feb 9 '15 #2

100+
P: 171
Thank you jforbes.
Is there any other approach?
Feb 10 '15 #3

jforbes
Expert 100+
P: 1,107
The only other way I can think of doing this kind of depends on what your data looks like. You could drop the HTML approach and split the TextBox into two side-by-side TextBoxes; one for the Number and the second for the Text. As long as your field doesn't have any or have a lot of HTML in it, it wouldn't be that hard to split the Number and Text.
Feb 10 '15 #4

100+
P: 171
Dear jforbes
The problem is that the memo field is meant to be as part of a single record. So when printed in a report it should show as same record and store in the table also as single record. Any thoughts?
Feb 12 '15 #5

Rabbit
Expert Mod 10K+
P: 12,430
There's nothing preventing you from storing it as multiple records but presenting it as if it were a single record. In fact, it's preferable because it normalizes the data.
Feb 12 '15 #6

jforbes
Expert 100+
P: 1,107
I agree with Rabbit, it would give you a tighter control of the data.

You could attempt to split the data and parse out the bullets and text when you are outputting it, but it will give you a major headache and I doubt you will ever be satisfied with your results. I really, really don't recommend this.
Feb 12 '15 #7

twinnyfo
Expert Mod 2.5K+
P: 3,485
rajeevs,

When I use the numbering format tool in my memo text boxes (with rich text) I get your desired effect. Are you trying to do something different?
Feb 19 '15 #8

TheSmileyCoder
Expert Mod 100+
P: 2,321
@Twinnyfo
Odd. When I do numbering in my rich text memo field I do NOT get the desired effect. The line(s) following the first does not get indented and starts under the numbers. I do agree that it doesn't look all that neat.
Feb 21 '15 #9

twinnyfo
Expert Mod 2.5K+
P: 3,485
All,

I stand corrected. I "mis-remembered" how my listing worked. It indents the entire line, but wraps to where the number is indented to.
Feb 24 '15 #10

Post your reply

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