IMPRIMIR DIRECTAMENTE EN "LPT1"

02/11/2004 - 00:06 por JuanmaX | Informe spam
ME GUSTARIA SABER COMO IMPRIMIR DIRECTAMENTE EN N PUERTO YA SEA EL COM O EL
LPT1.

GRACIAS.
 

Leer las respuestas

#1 Carlos Gómez
02/11/2004 - 07:02 | Informe spam
Dim sw1 As System.IO.StreamWriter =
System.IO.File.CreateText(C:temp.txt")

sw1.WriteLine("Esta linea termina con salto de linea.")
sw1.Write("Esta no. ")
sw1.Write("Continua con la linea anterior")
sw1.WriteLine("Linea nueva")
sw1.Close()

Try
Shell("print /d:LPT1 C:\temp.txt") 'si quieres en un puerto COM :
"print/d:COM1 C:/temp.txt"
Catch e As System.IO.FileNotFoundException
MsgBox(e.Message)
End Try

Preguntas similares