Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > How to insert a table into Rich Text Box?

Thread Tools Display Modes
Old 06-30-2004, 03:29 AM
mayangel mayangel is offline
Join Date: Jun 2004
Posts: 5
Default How to insert a table into Rich Text Box?

Halo everyone!

I wish to know whether i can insert a table which is created and saved as .html into a Rich Text Box? If it is so, how to achieve it?

Any coding involved? Or i need a convertor program to convert the tabel into RTF format?

Thanks for helping me!
Reply With Quote
Old 06-30-2004, 12:02 PM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
Join Date: May 2001
Location: Vorlon
Posts: 19,096

The RTB control supports only a small subset of the RTF specifications and that doesn't include tables.
So no matter what code you find/write to convert HTML tables to RTF, the RichTextBox control can't show the table.
Reply With Quote
Old 06-30-2004, 01:01 PM
Peperl's Avatar
Peperl Peperl is offline
Senior Contributor
Join Date: Apr 2003
Location: Cartagena, Spain
Posts: 1,371

Flyguy is right, the richtextbox don't support tables

if you don't need to edit that tables put it in a webbrowser control ... or use the word apis to generate and to open that document instad the rtf control, sure there's another way to do what you want

if you tell us more detailed what are you trying to maybe we could help you
Pri Oh Persia
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..