tags:

views:

42

answers:

2

Hi ..

I have RichTextBox .. if I opened a word 2003 ( or 2007 ) document and copied any table and paste it in it, the table's direction became Left-to-Right .. it reverse :

EX : this

---------------
|     TOP     |
---------------
|   1  |   2  |
---------------

after copy and paste in richtextbox became this :

---------------
|     TOP     |
---------------
|   2  |   1  |
---------------

is there any way to fix this ??

Thanx in advance

update :
I tried to save word file as .rtf and opened it with "Notepad++" then I copied the rtf code and put it in richtextbox.rtf property, I got the table but with same problem

A: 

Try RightToLeft property to achieve what you want to do.

Misnomer
unfortunately, I tried it but it didn't work
Al0NE
A: 

I found the answer Here :
http://stackoverflow.com/questions/1928853/why-isnt-the-richtextbox-displaying-this-table-properly

You need to create a new version of RichTextBox, and for those ( like me ) who don't know how to create custom control you'll find this article very useful :
http://www.codeproject.com/KB/miscctrl/cutebutton.aspx

Al0NE