Results 1 to 8 of 8

Thread: Font size to output file

  1. #1

    Thread Starter
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478

    Font size to output file

    Hi , is it possible to set the font size for a file you open for output.

    When i am creating files they are opend with wordpad and the font is set to 10.

    I would like the fontsize be set to 8 for the lines i insert into the file, can this be done from code ??

    Advanced thanks
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

  2. #2
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    use "Rich Text" format, then you can set things such as font

  3. #3

    Thread Starter
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478
    How can i use this , when i fill a file with strings ??

    I have to create files through code and these are sent to a client, this client can work wiht these files except for one file this ones font is to big to have the lines in one line.
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

  4. #4

    Thread Starter
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478
    These files are made with the open for output statement.

    When i open them in wordpad or notepad the fontsize is 10

    Can these files be created with a fontsize of 8 ??
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

  5. #5

    Thread Starter
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478
    Someone ??
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    Text files (.txt) have NO formatting, and there is nothing you can do about it. As phinds said, use Richtext (RTF).

    It's a simple file format, to find out what you need to put into the file just create a document in Word that has the formatting you need, save it as Rich-text (.rtf), then open the file in notepad to see what you need to add to get the formating you want.

  7. #7

    Thread Starter
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478
    I don't give the txt extension to the file it is made with the .dat extension can this be a problem ??
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

  8. #8
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974
    yes, ".dat" is used for lots of different things.. go for rtf, using the method i said before to find the file format.

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