Results 1 to 2 of 2

Thread: StreamWriter position to line number 9

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    8

    StreamWriter position to line number 9

    Group,
    I'm testing a small program that can read & write to an rtf file. Examples I have found work fine, although I have two questions:

    1)If I need to ALWAYS write to line number 9 of an existing RTF file, do I need to "read" 9 times or can I immediately position myself to line number 9. I have found character manipulation but can't seem to find what I need with positioning to a particular line number.

    2)BOLD text: I have found examples where I should be able to format my text, such as
    MyFile.WriteLine "\b"

    MyFile.WriteLine Text

    MyFile.WriteLine "\b0"
    but when doing this, it does not "bold" my text, but actually prints the text exactly as shown. I'm looking for information/links that I can "bold" "Italicize" text.


    Code is written in VS2005.

    Thanks
    Mary1100

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: StreamWriter position to line number 9

    Load the rtf file into a RichTextBox control and do the formatting using the control's methods.
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

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