CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Print a text file as a formated letter

    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!


  2. #2
    Join Date
    Dec 1999
    Location
    Italy
    Posts
    6

    Re: Print a text file as a formated letter

    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


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

Featured