Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how to merge rtf and keep formatting styles

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
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…

808 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