Click here to Skip to main content
15,891,785 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm trying to convert an XML file into an RTF text block using C# and then apply that RTF text block into an RTF Text Box on a Windows Form.

Do you guys have a quick way to do this? Preferrably using Linq to XML as that is how I built the XML file.

Thanks very much.
Posted
Comments
Tarun.K.S 25-Nov-10 0:26am    
Share your code with us.
ChristInBen 25-Nov-10 10:06am    
Well, I haven't started on any code yet. I used LINQ To XML to create an XML file that logs data from my Windows Installer and I'm trying to take that XML file and create an RTF file out of it so I can bind that to an RTF Text box and display it on a Windows Form as a part of the Windows Installer summary window. Can anyone help?

1 solution

Hi,

Build your own XML Parser.

Let it receive the XML tags / body etc. and strip the content you want.

Pass the content to rtf as text.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900