Solved

how to merge rtf and keep formatting styles

Posted on 2011-02-14
3
559 Views
Last Modified: 2012-05-11
Hi,
how can I merge several rtf texts and keep all the formatting style(font,color,size) of each of the merged rtfs and set it to a rtb.
Also important to know is that i am using data from database (set there as rtf textcode) and not from a file or another rtb.
I am working in VS2008 ,language vb.net
Thx,
0
Comment
Question by:kahvedzic
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 34893769
Is this for a Windows Forms application, or an ASP.NET web site?
0
 
LVL 1

Author Comment

by:kahvedzic
ID: 34894474
windows forms application..
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 250 total points
ID: 34895286
I think you can do this using to RichTextBox controls like below(not tested though)



Dim rtf1, rtf2 As New RichTextBox
            rtf1.Rtf = "some rtf from db or file"
            rtf1.SelectAll()
            rtf1.Copy()
            rtf2.Paste()
            rtf1.Rtf = "some other rtf from db or file"
            rtf1.SelectAll()
            rtf1.Copy()
            rtf2.Paste()
            ...

Open in new window

0

Featured Post

Highfive Gives IT Their Time Back

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

12 Experts available now in Live!

Get 1:1 Help Now