Visual Basic - Objeto Printer

Life is soft - evento anual de software empresarial
 
Vista:

Objeto Printer

Publicado por Lluis (23 intervenciones) el 11/06/2002 12:08:44
La pregunta es sencilla, pero la solucion no la encuentro.
En un libro me pone que para imprimir ponga Printer.Print.
El metodo .Print no lo tengo en el objeto Printer i no quiero imprimir directament con "LPT1" ni con el .PrintForm. Como imprimir con Printer?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

RE:Objeto Printer

Publicado por Iñaki (502 intervenciones) el 11/06/2002 13:44:45
Aunque no te aparezca el método "Print " no quiere decir que no lo soporte. De todas formas, si no quieres imprimir directamente, lo que puedes hacer es insertar un CommonDialog, y trabajar con él.

' **** te muestra las impresoras
CommonDialog1.ShowPrinter
' **** te imprime el nº de copias seleccionadas
For i = 1 to Commondialog1.Copies
printer.Orientation = 2
Printer.print " xxxxx -x-xxxxxx"
Printer.EndDoc

next
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar