PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

How to display/edit formatted text from a database?

 
 
Phil
Guest
Posts: n/a
 
      20th Nov 2003
Hi All!

What is the most recommended way of displaying formatted
text from a database and allowing users to edit and save
it back to the database?

I guess, RichTextBox control will do the job, but I was
not able to display multi-line table rows properly in the
RichTextBox control [although they display just fine in
Word(Pad)]:

http://communities.microsoft.com/new...previewFrame.a
sp?
ICP=msdn&sLCID=us&sgroupURL=microsoft.public.dotnet.framew
ork.windowsforms&sMessageID=%253C06fd01c3ad0c%
2524e4d8c490%(E-Mail Removed)%253E

i.e., instead of

+---+
| A |
+---+
|AAA|
|AAA|
|AAA|
+---+

I am getting

+---+
| A |
+---+
|AAA|AAAAAA
+---+


What gives? Hopefully, there is an alternative to Word
automation, because I do not want my application to
depend on Word.

Phil
 
Reply With Quote
 
 
 
 
Jon Paugh
Guest
Posts: n/a
 
      20th Nov 2003
Take a look at what characters are being used for end of
line markers in the text. You might be able to replace the
characters with the appropriate characters using regular
expressions and then the control would show the data
correctly? Not sure exactly what's going on but it
probably has to do with EOL characters...


>-----Original Message-----
>Hi All!
>
>What is the most recommended way of displaying formatted
>text from a database and allowing users to edit and save
>it back to the database?
>
>I guess, RichTextBox control will do the job, but I was
>not able to display multi-line table rows properly in the
>RichTextBox control [although they display just fine in
>Word(Pad)]:
>
>http://communities.microsoft.com/new...previewFrame.a
>sp?
>ICP=msdn&sLCID=us&sgroupURL=microsoft.public.dotnet.framew
>ork.windowsforms&sMessageID=%253C06fd01c3ad0c%
>2524e4d8c490%(E-Mail Removed)%253E
>
>i.e., instead of
>
>+---+
>| A |
>+---+
>|AAA|
>|AAA|
>|AAA|
>+---+
>
>I am getting
>
>+---+
>| A |
>+---+
>|AAA|AAAAAA
>+---+
>
>
>What gives? Hopefully, there is an alternative to Word
>automation, because I do not want my application to
>depend on Word.
>
>Phil
>.
>

 
Reply With Quote
 
Phil
Guest
Posts: n/a
 
      20th Nov 2003
Thanks,

But control words \intbl, \cell, and \row are properly
set in the RTF file I used.

Phil
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Display Formatted Text with ASP.NET ? kbolster20@yahoo.com Microsoft ASP .NET 2 28th Jan 2005 08:13 PM
Re: display rtf formatted text on a form François Uldry Microsoft Access Form Coding 0 14th Feb 2004 01:49 AM
Re: display rtf formatted text on a form Andy Debaere Microsoft Access Form Coding 0 15th Jan 2004 05:45 PM
Formatted Text Pulled from a Database Frolickin Microsoft Frontpage 3 5th Dec 2003 09:54 PM
How to display a formatted message in plain text? Dan Microsoft Outlook VBA Programming 0 30th Jun 2003 06:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:29 PM.