Solved

RichTextBox - TABLE (Is it possible?)

Posted on 1999-01-12
5
1,005 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

856 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