Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/07/2008, 17:00
K_any
 
Fecha de Ingreso: julio-2008
Mensajes: 6
Antigüedad: 15 años, 10 meses
Puntos: 0
Imprimir los datos de un formulario

Hola amigos. Soy nuevo en este foro y me gustaría, si esta en sus manos, que me ayudaran.

Estoy aprendiendo VB y me gustaría aprender a imprimir los datos que haya en un formulario. Hice un formulario para practicar, pero a la hora de ejecutarlo me da el siguiente error:

Compile error: Method or data member not found

y me señala la línea donde puse Printer.Orientation=1

Aquí les pongo el code completo:
Private Sub Printer_Click() <-------- aquí se pone amarillo
Printer.Orientation = 1 <-------- aquí me señala .Orientation = 1
Printer.FontSize = 12
Printer.Print
Printer.Print
Printer.Print
Printer.Print Tab(15); Label1.Caption; Tab(30); Text.Text
Printer.Print
Printer.Print
Printer.Print Tab(15); Label2.Caption; Tab(30); Text.Text
Printer.Print
Printer.Print
Printer.Print Tab(15); Label3.Caption; Tab(30); Text.Text
Printer.EndDoc
End Sub

Ya había intentado imprimir otro frm pero con más datos y me daba el mismo error, aunque me señalaba la línea "Printer.Print Tab(15); Label1.Caption; Tab(30); Text.Text donde está .Caption

Qué esta mal? Donde me estoy equivocando? Por favor les agradecería su ayuda.

Intenté imprimir todo el Frm y me resultó, pero no es lo que quiero. Me entienden.

Gracias chicos.