Solved

RichTextBox - TABLE (Is it possible?)

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

729 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