-
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
-
use "Rich Text" format, then you can set things such as font
-
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.
-
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 ??
-
-
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.
-
I don't give the txt extension to the file it is made with the .dat extension can this be a problem ??
-
yes, ".dat" is used for lots of different things.. go for rtf, using the method i said before to find the file format.