Visual Basic - Imprimir RichTextBox

Life is soft - evento anual de software empresarial
 
Vista:

Imprimir RichTextBox

Publicado por gabi (31 intervenciones) el 03/10/2000 00:00:00
Tengo el siguiente codigo, que me imprime el contenido de un RichTextBox, el problema es que no lo puedo ubicar en el sitio que yo quiera:
Printer.Print ""
Printer.CurrentX = 1000
Printer.CurrentY = 1000
Printer.FontBold = True
Printer.FontSize = 20
Printer.FontUnderline = True
Printer.Print Text1 _(TabStrip1.SelectedItem.Index).SelPrint; Printer.hdc
Printer.EndDoc

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 RichTextBox

Publicado por ambrikan (12 intervenciones) el 12/01/2001 00:00:00
*insertas un botón.
*en las propiedades del botón, elige la propiedad CAPTION modifícala poniéndole por ejemplo "Imprimir", o "Imprimelo!".
*haces doble clic en el botón, y te saldrá la ventana de código y pones lo siguiente:
(command1 puede variar)
------
private sub command1_click(no sé que mas...)
Printer.Print ""
Printer.CurrentX = 1000
Printer.CurrentY = 1000
Printer.FontBold = True
Printer.FontSize = 20
Printer.FontUnderline = True
Printer.Print Text1 _(TabStrip1.SelectedItem.Index).SelPrint; Printer.hdc
Printer.EndDoc

end sub

-------
se despide: ambrikan :-)

^^seguramente esto te habrá ayudado. ayúdame tu también visitando mi página web (necesito visitantes) www.geocities.com/ambrikan.^^
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