I have had success printing a text file in VB such as follows:
Public Sub Printtxtfile(filename as string)
Dim s as string
Open filename for input as #1
printer.font = "courier"
printer.fontsize = 12
line input #1,s
printer.print s
loop
...
I have yet to find a way to pass a variable (filename)...
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.