Private Sub Form_Load()
Dim file As String
'Replace 'c:\autoexec.bat' with the file you want
to print
file = "c:\autoexec.bat"
Open file For Input As #1
Text1.Text = Input(LOF(1),
#1)
Close
Printer.Print
Text1.Text
Printer.EndDoc
End Sub