Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/04/2014, 12:31
Avatar de gasafonso
gasafonso
 
Fecha de Ingreso: septiembre-2008
Mensajes: 357
Antigüedad: 15 años, 7 meses
Puntos: 1
Imprimir 2 paginas

Hola quiero imprimir 2 paginas con Printer

mi codigo es este

Código vb:
Ver original
  1. For I = 1 To f_factura.grilla.Rows - 1
  2.    If f_factura.grilla.TextMatrix(I, 1) <> "" Then
  3.      Printer.CurrentX = 1 + (1.5 - Printer.TextWidth(Format(f_factura.grilla.TextMatrix(I, 0), "#,##0.00"))) '1
  4.     Printer.Print Format(f_factura.grilla.TextMatrix(I, 0), "#,##0.00");
  5.      Printer.CurrentX = 3 '3
  6.     Printer.Print f_factura.grilla.TextMatrix(I, 2);
  7.      Printer.CurrentX = 12 '14
  8.     '************************Alinear una columna dentro del PicturBox para Imprimir**************************************
  9.     Printer.CurrentX = 16 + ((1.5 - Printer.TextWidth(Format(f_factura.grilla.TextMatrix(I, 3), "#,##0.00")))) '14
  10.     Printer.Print Format(f_factura.grilla.TextMatrix(I, 3), "#,##0.00"); ' ojo ; no baja el renglón
  11.     Printer.CurrentX = 18 '16
  12.     '************************Alinear una columna dentro del PicturBox para imprimir**************************************
  13.     Printer.CurrentX = 18 + ((1.5 - Printer.TextWidth(Format(f_factura.grilla.TextMatrix(I, 4), "#,##0.00")))) ' 16.5
  14.     Printer.Print Format(f_factura.grilla.TextMatrix(I, 4), "#,##0.00")
  15.    End If ' <>""
  16. Next
  17.  '******************************************************
  18. 'Printer.EndDoc ' ver esto
  19. '*******************************************************
  20. Call f_factura.GuardarDatos
  21. End If
  22. Printer.EndDoc