Results 1 to 3 of 3

Thread: Displaying Table on RichTextBox

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2010
    Posts
    56

    Displaying Table on RichTextBox

    Hello, everyone! In my program, users can fill out orders, and I'm trying to make a way for them to export orders to a .rtf file. In order to preserve formatting (bold, underline, etc.), I'm creating a RichTextBox (through code) and formatting the text appropriately. To save the output, I'm simply using the RichTextBox.SaveFile method. Now, to list all of the products that were sold in the order, I'm deriving the information from a ListView. The ListView contains the product name, product price, and quantity sold of that product. I cannot find a way to list the output in a table-like structure, so I tried making a DataGridView and pasting it onto the RichTextBox. Unfortunately, this didn't work at all, so I was wondering if anyone had any ideas as to what I can do. I can't simply use Tabs to space out the information because it doesn't get formatted nicely. I would greatly appreciate any help. Thanks!

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    Re: Displaying Table on RichTextBox


  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2010
    Posts
    56

    Re: Displaying Table on RichTextBox

    Thank you for the reply; however, the accompanying RTFtable file contains class modules from VB6, unfortunately. I'm using VB.NET.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width