Solved

how to merge rtf and keep formatting styles

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 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