Solved

how to merge rtf and keep formatting styles

Posted on 2011-02-14
3
564 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
asp Google Map 2 55
Is it possible to preview ajax call before submitting to the database? 18 59
vb.net convert long time to mm:ss 23 20
UDP Data Capture Thread Issue 7 29
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

680 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