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!
Re: Displaying Table on RichTextBox
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.