Report - how to add paragraph and Tab and font size and style and other features to a text file

Hi All,

I have written few lines of code to add text into a text file. It is working as expected. However, I need to add paragraph and Tab and font size and style and other features to a text file so that if I open that text file in doc or pdf format it will be in proper alignment of text. It should look like a report.

Any help would be greatly appreciated.

Thanks,

You need to look at StyledText.

Thanks Bob for your inputs. I will check and let you know if I face any problems.