Smart questions
Smart answers
Smart people
Join Tek-Tips Forums

Member Login

Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

Join Tek-Tips
*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.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Cannot add text to RichTextEdit control

gagar (TechnicalUser) (OP)
15 Apr 12 20:02
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.


wtf2011 (Programmer)
16 Apr 12 2:11
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}'


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!

Back To Forum

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