473,508 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RichTextBox Control and Tables


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 "books" column, and a "categories" column, and I want to
have multiple rows of information written to the control and saved in
RTF. when anyone opens up the RTF file, they'll see columns and rows of
books and categories. I'd also like to format the table, if possible.
*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #1
1 6424

Larry wrote:
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 "books" column, and a "categories" column, and I want to
have multiple rows of information written to the control and saved in
RTF. when anyone opens up the RTF file, they'll see columns and rows of
books and categories. I'd also like to format the table, if possible.


Hi Larry :)

The complete RTF specification is a free download from Microsoft BUT
it's a huge document and (like most specifications) not much fun to
read. What I generally do when I want to work out how to do something
in RTF is this: Create a minimal document in Word or (preferably)
WordPad that contains the desired feature, save it as RTF, and examine
the resulting file with Notepad.

I can't work out how to create tables in Wordpad, so I created a table
in a Word doc, saved it as RTF, then opened it and saved it with
Wordpad (this serves to strip away much of the fluff that Word adds).
Reading the resulting text in conjunction with the specification
produces enlightment.

Googling RTF produces <http://www.biblioscape.com/rtf15_spec.htm> as
the first result, which looks readable enough.

--
Larry Lard
Replies to group please

Nov 21 '05 #2

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

Similar topics

1
2568
by: vanvee | last post by:
Hi I have a user control that contains a RichTextBox in vb.net. In my program, I create multiple instances of this control (with the RichTextBox being in each one), that appear one above the...
0
4531
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...
2
4847
by: Reinhard Vornholt | last post by:
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...
1
2469
by: Nathan Carroll | last post by:
In an mdi environment I constructed a child for with a richtextbox control that is used to load .rtf's. This works fine on the intiatial load of the form but when for is closed and reopened later...
1
1366
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
4839
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...
3
7154
by: michael sorens | last post by:
The documentation for the RichTextBox is sketchy at best. I want to do a very simple task but I cannot find information on this. I am using a RichTextBox as an output window. Some text I want to...
4
13400
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a multiline RichTextBox that I use for data logging. I'm concerned about how the AppendText method reacts when over time the maximum number of characters have been added. Do the...
1
3009
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
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7124
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
7385
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
7046
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
7498
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
5629
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
5053
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
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.