14
Views
2
Comments
RTF to XML conversion
Question

Hi Everyone,

I got an issue where I have to convert a RTF payslip file to text file using RichTextBox.

But parsing(using string split in OS) is a night mare. 

Any alternative to do this conversion without any third party involved?


Thanks in advance.


Rank: #2353

Hi Lakshmi,

I believe if you don't need to go for any third party web services or forge components, then you can go with old school way of doing it using C# code. You can create a extension module and get it done easily.

Here are couple of links for converting RTF to TXT using C#.

1. https://stackoverflow.com/questions/5634525/how-to-convert-an-rtf-string-to-text-in-c-sharp

2. https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2013/cc488002(v=vs.120)


Regards,

Nikhil