RTF Box as Report Viewer
Posted on 2002-04-23
Can I use rich text box to display and print reports. My problem is I don't know how to add text to RTF Box at runtime using different fonts and colors at a particular line.
For example, If I do something like this:
rtf.Font.Size = 15
rtf.Text = "Hello"
rtf.Font.Name = "Arial"
rtf.Font.Size = 20
rtf.Text = rtf.Text & " How"
Then both words are displayed using Size 20 and font arial. But I wanted that only second word should be of size 20 and font "Arial".
Also If I want to move to a particular line and then move to a column n and start writing text at column n. So is there any way to do it?