Solved

RichTextBox - TABLE (Is it possible?)

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 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