open "c:\yourtext.txt" for input as filehandle
do untill eof(filehandle)
line input #filehandle, strtemp
printer.print strtemp
loop
printer.enddoc
close filehandle
I think this will work for you but there are other ways of doing this but i think this is probally the most general way of printing a text file. Another way you could do this is by changing the extension of the text file to rtf (rich text file) and open with
dim objectvar as object
set objectvar = getobject("mytext.rtf"
and use the microsoft word object which does have a print method.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.