Solved

Copy / Paste RTF

Posted on 1998-09-05
4
376 Views
Last Modified: 2010-04-30

Each time a copy from my rtf control and paste the contents anywhere else, I seem to get the RTF codes with it.

How do you simply copy the actual text without the codes?

0
Comment
Question by:idcanada
4 Comments
 
LVL 3

Expert Comment

by:a111a111a111
ID: 1433279
did you tried to clear the content of the Clipboard:

first do this

clipboard.clear
then RichTextBox1.Text = ""

and then place your text into the rtf..

 
0
 
LVL 4

Author Comment

by:idcanada
ID: 1433280
a111,
Whenever you see my name,
please ignore my it.

Do not try to answer any of my Questions in the futur please.


0
 
LVL 1

Accepted Solution

by:
kdimmock earned 20 total points
ID: 1433281
Not too sure whether this is what you want but it might give you some ideas...

The control has a couple of useful properties ...

TextRTF and Text

TextRTF contains the RTF codes, the Text doesn't.

I'm not sure how you are doing the copy, but if you put some code behind a menu/command button/..

Clipboard.SetText RichTextBox1.Text

This should help!?

Good luck!
0
 
LVL 14

Expert Comment

by:waty
ID: 1433282
I have curently the same problem. What I will do, is parsing the text with a function removing all the non ASCII characters.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now