Solved

RichTextBox - TABLE (Is it possible?)

Posted on 1999-01-12
5
1,009 Views
Last Modified: 2013-12-25
Does RichTextBox control support tables? Insert a RTBox in a form and paste a table copyed by a created MSWORD RTF document realy doesn't work!

How can I have a table in a RTBox?

I know that like HTML files, is possible to make a RTF file by writting code.

Where can I found a RTF files builder tutorial?

Thanks!
0
Comment
Question by:ppaulinolopes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 3

Expert Comment

by:vbWhiz
ID: 1489621
Open the rtf file in wordpad. This is the best that RTF can do - sorry.
0
 
LVL 4

Expert Comment

by:chabaud
ID: 1489622
If you need table, you could use the WebBrowser control.
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1489623
The Help Authors Guide has a good discussion on RTF commands and their uses. Here is what popped up when I searched on TABLE:

The following statements specify table formatting properties:

Statement      Meaning

\cellxn      Set absolute position of a table cell's right edge
\clmgf      Mark first cell in a range of cells to be merged
\clmrg      Merge current cell with preceding cell
\trgaphn      Space between text in adjacent cells
\trleftn      Set the position of left margin for the first cell in table row
\trowd      Set table row defaults
\trqc      Relative column widths. OVERLOADED
\trql      Left align text in each cell of table row (default)

Now wether the RTB control supports these commands is another issue entirely.

M

0
 

Author Comment

by:ppaulinolopes
ID: 1489624
I am sorry... The RTF code above don't work on a RTB control. All RTF supported codes of a RTB control are shown at VB 5.0 help. And it does not include none of the above.

About using the wordpad to write RTF code? Try paste a picture in a document and save it as a RTF file. U can't open that file.... it's to large.
0
 
LVL 12

Accepted Solution

by:
mark2150 earned 100 total points
ID: 1489625
Ok, so answer is that general RTF files *can* handle tables, but the RTB supplied by M$ *CAN'T*.

M

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to set the row selection as it was prior leaving the datagrid in vb6 3 60
Help me. 3 77
Publisher:   Unknown     VB.exe Application 1 31
2 Global Vars, 1 List Box 4 30
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question