Click to See Complete Forum and Search --> : Print a text file as a formated letter


December 23rd, 1999, 11:08 AM
Could someone please tell me ways available in vb to print text files(or content in a textbox) as a formated letter. Thank you! Happy Holiday!

Noog
December 27th, 1999, 12:47 PM
I think the only possible way is loading the text in a RichText box (simply changing the Font attribute isn't enough, Clipboard and Printer will store only the Text property), then sending its contents to printer or any other device you want, specifying rich text as format. The problem will be another, since I absolutely ignore how RTF format work, and where documentation about it can be found... I know it's a sort of markup language, like HTML, but I don't know what sort of elements you have to wrap around text to format it...
I'll make some tries saving Word documents in RTF format, & exploring them with Notepad, if I find out more I'll tell you