473,499 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RichTextBox and Tables

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
Nov 16 '05 #1
2 4840
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?

"Reinhard Vornholt" <vo******@NOSPAM-coredumped.de> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...
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

Nov 16 '05 #2
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

"John Wood" <j@ro.com> schrieb im Newsbeitrag
news:u$**************@TK2MSFTNGP10.phx.gbl...
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?

"Reinhard Vornholt" <vo******@NOSPAM-coredumped.de> wrote in message
news:uE**************@tk2msftngp13.phx.gbl...
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


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4529
by: JMe9ka | last post by:
I'm looking to export data from my application into a document. The data represented needs to be shown in a table (like a table within a Word document). I am currently using Word automation to...
0
1291
by: acconrad | last post by:
We're trying to make it such that you can change the color for hyperlinks in RichTextBox controls. Currently VS.NET '03 does not allow one to do this. We tried this -->...
2
17261
by: JonnyT | last post by:
I searched high and low for an answer on how to auto scroll a richtextbox and now I finally have it. Since it took me a while to get a good efficient way of doing it that didn't require focus to...
0
1399
by: JPTapt | last post by:
Hello - I'm new to vb.net and I'm stumped by a problem... I created an rtf file in msword with tables and set the table border to none. When I load the file into a RichTextBox in a vb.net...
1
6422
by: Larry | last post by:
I'd like to programatically create a "table" with columns and rows inside the richtextbox control and save the table as a file in RTF format. Does anyone have any examples of this? so i want a...
1
1364
by: thomasp | last post by:
Using VB2005 I am trying to display a .rft file in a richtextbox control. The file contains an table and some other text. The file opens without a problem in MS Word, but when I display it in the...
9
4835
by: James Wong | last post by:
Hi, I use the RichTextBox in my program. It will use different language in this RichTextBox (chinese and english characters), and it set the "DualFont" and use different fonts. By the way, how...
0
2024
by: Vimalathithan | last post by:
I just developing a editor. I have provide the options like Bold, Italic, underlin, font change, font size change. These font options are keep in with one toolstripbutton. the toolstripbar keep...
1
3005
by: shakti s | last post by:
hi, My aplologies if this is really a silly question. I am trying to read contents like images and tables from one rich text box and paste it into another RTF control(i.e. another Richtextbox)....
0
7006
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7385
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5467
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4917
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4597
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
294
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.