RichTextBox and Tables

  • Thread starter Thread starter Reinhard Vornholt
  • Start date Start date
R

Reinhard Vornholt

Hi,

I have problems with the Windows.Forms.RichtextBox Control of the VS.
I have a text that is written with WordPad. In this text there are tables.
The cells in the tables are holding multiple lines. When I copy & paste the
whole text, including the table, the table does not show up properly in the
richtextbox control. The cells are only single line. The text in the cells
does not wrap. The text in the cells actually leaves the cell.

I created two screenshot to ilustrate the problem:
Good Table in WordPad:
http://www.coredumped.de/pics/rtf-good.jpg

and here the table after copy and paste in the richtextboxcontrol:
http://www.coredumped.de/pics/rtf-bad.jpg

Is this a bug or intention that the richtextbox cant render tables properly?
I realy need the feature of tables. Is there a fix for it?

Thx
RV
 
Not sure -- but the richedit control definitely can render the tables
properly, because that's what wordpad is using.
Do you get the same effect if you save the wordpad RTF file and *load* that
into the richedit control, rather than copy/paste?
 
Hi John,

I just tested loading a file rather than copy and paste the rtf. But I get
the same error. When I load the same file in wordpad everything is ok. Like
on the screenshots... :(

Anyone can help? I really need tables in my RTF Box.

RV
 
Back
Top