|
#1 -
26/08/2009 23:42:21
|
Reporta abuso
|
Link Permanente
|
|
Impresion de TextBox
|
|
|
|
|
|
hola a todos:
Estoy haciendo un proyecto de en el cual ocupo imprimir el contenido de los textbox, estoy utilizando Webdeveloper 2008 con visual basic, lo que estoy ocupando es un ejemplo de como se hace la impresion, favor de ayudarme gracias.
|
|
|
|
|
|
#2 -
09/09/2009 16:52:23
|
Reporta abuso
|
Link Permanente
|
|
RE: Impresion de TextBox
|
|
|
Imports System.Drawing.Printing Imports System.Drawing _____________________________________________________________________ Partial Class Cyber_Impresiondocumento Inherits System.Web.UI.Page ______________________________________________________________________ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)_Handles Button1.Click Dim printDoc As New PrintDocument AddHandler printDoc.PrintPage, AddressOf print_PrintPage printDoc.Print() End Sub ________________________________________________________________________ Private Sub print_PrintPage(ByVal sender As Object, ByVal e As PrintPageEventArgs) e.Graphics.DrawString(TextBox1.Text, New Font("Arial", 10, FontStyle.Regular), Brushes.Black, 30,30) e.HasMorePages = False End Sub End Class
|
|
|
|
|
|
|
#3 -
09/09/2009 1:55:52
|
Reporta abuso
|
Link Permanente
|
|
RE: Impresion de TextBox
|
|
|
Imports System.Drawing.Printing
Imports System.Drawing _____________________________________________________________________ Partial Class Cyber_Impresiondocumento Inherits System.Web.UI.Page ______________________________________________________________________ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)_Handles Button1.Click Dim printDoc As New PrintDocument AddHandler printDoc.PrintPage, AddressOf print_PrintPage printDoc.Print() End Sub ________________________________________________________________________ Private Sub print_PrintPage(ByVal sender As Object, ByVal e As PrintPageEventArgs) e.Graphics.DrawString(TextBox1.Text, New Font("Arial", 10, FontStyle.Regular), Brushes.Black, 30, 30)Class Cyber_ImpresiondocumentoSystem.Drawing.Printing e.HasMorePages = False End Sub End Class
|
|
|
|
|
|
|
#4 -
09/09/2009 1:51:00
|
Reporta abuso
|
Link Permanente
|
|
RE: Impresion de TextBox
|
|
|
Imports Imports System.Drawing _____________________________________________________________________ Partial Inherits System.Web.UI.Page ______________________________________________________________________ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)_Handles Button1.Click Dim printDoc As New PrintDocument AddHandler printDoc.PrintPage, AddressOf print_PrintPage printDoc.Print() End Sub ________________________________________________________________________ Private Sub print_PrintPage(ByVal sender As Object, ByVal e As PrintPageEventArgs) e.Graphics.DrawString(TextBox1.Text, New Font("Arial", 10, FontStyle.Regular), Brushes.Black, 30, 30)Class Cyber_ImpresiondocumentoSystem.Drawing.Printing e.HasMorePages = False End Sub End Class
|
|
|
|
|
|
|
#5 -
09/09/2009 0:53:47
|
Reporta abuso
|
Link Permanente
|
|
RE: Impresion de TextBox
|
|
|
Aqui esta el un ejemplo
Imports Imports System.Drawing _____________________________________________________________________ Partial Inherits System.Web.UI.Page ______________________________________________________________________ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)_Handles Button1.Click Dim printDoc As New PrintDocument AddHandler printDoc.PrintPage, AddressOf print_PrintPage printDoc.Print() End Sub ________________________________________________________________________ Private Sub print_PrintPage(ByVal sender As Object, ByVal e As PrintPageEventArgs) e.Graphics.DrawString(TextBox1.Text, e.HasMorePages = False End Sub End Class
New Font("Arial", 10, FontStyle.Regular), Brushes.Black, 30, 30)Class Cyber_ImpresiondocumentoSystem.Drawing.Printing
|
|
|
|
|