Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/09/2012, 13:34
ipod1987
 
Fecha de Ingreso: septiembre-2009
Mensajes: 6
Antigüedad: 14 años, 7 meses
Puntos: 0
Respuesta: procedimiento impresion ticket

Amigo gracias por tu código. Estoy ejecutandolo en .Net pero me da el siguiente error:

"Invalid handle. Parameter name: handle"

en esta línea:
outFile = New System.IO.FileStream(Safe, IO.FileAccess.Write)

pero me he percatado que en:

hPort = CreateFile(LPTPORT, GENERIC_WRITE, FILE_SHARE_WRITE, SA, OPEN_EXISTING, 0, 0)
hPortP = New IntPtr(hPort)

"hPort " viene con -1. Podrias ayudarme? Gracias!