Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


Cannot add text to RichTextEdit control

Cannot add text to RichTextEdit control

I cannot add any text to a RichTextEdit control, I try:


ls_richtext = "Hello"
rtn = rte_1.PasteRTF(ls_richtext)

but nothing is been added to the control.
I try:
rte_1.SelectText(2,1, 0,0)  instead of rte_1.SelectTextAll()

rte_1.PasteRTF(ls_richtext, Detail!) instead of

but is not working, any help is appreciated.



RE: Cannot add text to RichTextEdit control

ls_richtext="Hello" is not a rich text formatted string.


ls_richtext = '{\rtf1\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fnil\fcharset0 Calibri;}}{\*\generator Msftedit;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang7\f0\fs22 Hello\par}'


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close