feramet
asked on
Printing a text file
How can I send to the printer a text file?
There is a command or a function to print a file?
There is a command or a function to print a file?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks!!!
Bought This Question.
Do as follow :
nMageHeight = Printer.Height - Printer.ScaleHeight
' *** Open the file
nSgmlIn = FreeFile
Open sSgmlCurrent For Input Access Read As #nSgmlIn
Do While EOF(nSgmlIn) = False
Line Input #nSgmlIn, sTmp
If Printer.CurrentY > Printer.Height - nMageHeight then
Printer.NewPage
End If
printer.print stmp
Loop
Close #nSgmlIn
Printer.EndDocument