Visual Basic - imprimir

Life is soft - evento anual de software empresarial
 
Vista:

imprimir

Publicado por andes soler (43 intervenciones) el 03/06/2003 23:45:17
como hago para imprimir con el printer?
creo que es algo así:

Private Sub CMDPRIN1_Click()
cp = 0
Printer.Orientation = 1
Printer.FontSize = 12
Do While Not Data1.Recordset.EOF
If cp = 0 Then
Printer.FontSize = 14
Printer.Line (100, 500)-(1000, 500)
Printer.Print "NUMERO FECHAPAGO BANCO"
Printer.Line (100, 700)-(1000, 700)
End If

Printer.Print Data1.Recordset(0); Tab(15)
Printer.Print Data1.Recordset(1); Tab(30)
Printer.Print Data1.Recordset(2); Tab(45)

Data1.Recordset.MoveNext
Loop
End Sub

pero no me imprime y no me hace nada.
si algien fuera tan amable de responderme???
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

RE:imprimir

Publicado por jose carlos (243 intervenciones) el 04/06/2003 01:54:39
te falta al final o
PRINTER.NEWPAGE
PRINTER-.ENDOC
para que la impresión pase a la impresora
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