473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Copy tables and images from one richtextbox to another

hi,

My aplologies if this is really a silly question.

I am trying to read contents like images and tables from one rich text box and paste it into another RTF control(i.e. another Richtextbox).

when i am doing this...the rtf encoding is getting displayed in the destination RichTextBox.

i think i am missing out something there.

Any sample code or pointers will be really helpful.

Thanks,
Shakti.
Oct 17 '08 #1
1 3001
On Fri, 17 Oct 2008 09:00:27 -0700, shakti <swrote:
hi,

My aplologies if this is really a silly question.

I am trying to read contents like images and tables from one rich text
box and paste it into another RTF control(i.e. another Richtextbox).

when i am doing this...the rtf encoding is getting displayed in the
destination RichTextBox.

i think i am missing out something there.
Well, one thing you're missing is that you haven't posted a
concise-but-complete code sample that demonstrates how you're doing it now.

That said, you might find that the RichTextBox.Rtf property is useful.
Assign the Rtf property from one RichTextBox to the Rtf property of
another. This will ensure that the RTF is actually being interpreted as
RTF when you're copying the contents from one to another.

Pete
Oct 17 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: nouno | last post by:
I am trying to spell check a richtextbox. Through code (shown below) I save the contents of the richtextbox to a rtf file, open the rtf file in Word, spell check it, save it, and then load the ftf...
0
by: JMe9ka | last post by:
I'm looking to export data from my application into a document. The data represented needs to be shown in a table (like a table within a Word document). I am currently using Word automation to...
2
by: Hariharan Subramony | last post by:
Hello Guys, I have an important issue and need solution at the earliest. Thanks in advance. I have a RichTextBox named say, ' rtb' that has the text "Hello, I am fine." To place it in the...
4
by: Legendary Pansy | last post by:
I was checking out the 101 C# Samples, specifically Windows Forms - Use the Clipboard. I took a look at the code for a while, and I understand what the program is doing with the cut, copy, pasting...
3
by: Steve Franks | last post by:
I think the Copy Web tool is a great idea but its implementation could use improvement. Either that or I am using it incorrectly. Basically I do not see any option to copy an entire site in one...
2
by: Jim | last post by:
Could someone please point me to some sample source code for including images within a Richtextbox in VB.NET, without using the clipboard ? Thanks in advance! Jim
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
8
by: pechar | last post by:
Hi all, I created an application to copy certain tables from a database on MSSQL server to another database on MYSQL server which is on another server (very very very far away). The process works...
0
by: Tom | last post by:
When I use ctrl-c to copy and ctrl-v to paste from a RichTextBox into NotePad ... I get nice ASCII text with the proper returns. Everything looks good. When I paste into WordPad ... I get the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.