You may also use ShellExecute function to print a variety of documents including text files.
___
[tt]
Private Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Sub PrintDocument(Document As String)
ShellExecute hwnd, "print", Document, "", "", 0
End Sub
Private Sub Form_Load()
PrintDocument "C:\fred.txt"
End Sub[/tt]