VB - Changing font size with the Print# command
VB - Changing font size with the Print# command
(OP)
Is it possible to change the font size and use the print# command. Below you can sort of see what I want to do but it will not work. What is the proper method to achieve this?
Open FileName For Append Access Write Lock Write As #1
Font.Size = 16
Print #1, "Print Line 1 at font size 16"
Font.Size = 10
Print #1, "Print Line 2 at font size 10"
Close #1
Open FileName For Append Access Write Lock Write As #1
Font.Size = 16
Print #1, "Print Line 1 at font size 16"
Font.Size = 10
Print #1, "Print Line 2 at font size 10"
Close #1





RE: VB - Changing font size with the Print# command
To store text with font info you should look into the RichTextBox control, and its LoadFile and SaveFile statements, or you could hand-code the data as an HTML file.
Good Luck
johnwm
________________________________________________________
To get the best from these forums read FAQ731-376 before posting
UK steam enthusiasts: www.essexsteam.co.uk