1

C# WinForms:

If I want to create tables at run time for a rich text box, should I programmaticly create the RTF specification syntax of a table and pass it to its rtf text? Is there any better way?

Bohn
  • 26,091
  • 61
  • 167
  • 254
  • 3
    Does it have to be a rich text box? Can you use a [DataGrid](http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.aspx)? – Scott Chamberlain Aug 29 '12 at 14:28
  • hmm good idea.. the goal at the end is to be able to insert it into a text editor , the report page that we print.. and that's a "TX Text Control" .. ( this to be exact http://www.textcontrol.com/en_US/products/activex/overview/ ), So do you think later I can somehow cretae RTF from DataGrid? or somehow insert it into that editor? – Bohn Aug 29 '12 at 14:37
  • 1
    Same question was asked here http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/bf3169f9-dec8-4045-9b12-51b0d2230087 please see the answers hope they help you – HatSoft Aug 29 '12 at 14:42
  • You can take a look at this, it's not that difficult: http://stackoverflow.com/a/13321729/1543816 – Jerry Oct 13 '13 at 00:54

0 Answers0