
20/05/2008, 07:10
|
| | Fecha de Ingreso: enero-2008
Mensajes: 233
Antigüedad: 17 años, 1 mes Puntos: 2 | |
imprimir textbox Hola comunidad ^^!
tengo el siguiente problema para imprimir algunos textbox
tengo el siguiente codigo
public void PrintAString(string data)
{
PrintDocument pd = new PrintDocument();
printFont = new Font("Courier", 12);
printString = data;
pd.PrintPage += new PrintPageEventHandler(PrintPage);
pd.Print();
}
private void PrintPage(object sender, PrintPageEventArgs e)
{
float xp = 10;
float yp = 20;
e.Graphics.DrawString(printString, printFont, Brushes.Black, xp, yp, new StringFormat());
}
ahora bien lo que quiero imprimir es algo asi
CALCULO DE CUOTAS
(titulo de 16)
Datos personales
Nombre : textbox1
Apellidos : textbox2
comuna : textbox3
fechas: textobox4
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
datos del comprador
Nombre : textbox1
Apellidos : textbox2
comuna : textbox3
fechas: textobox4
MONTO TOTAL: TEXTBOX
MONTO CALCULADO : TEXTBOX
cosa q vallan variando los tipo de letra
ademas de como centrar los titulos y esas cosas
si alguien me pudiese ayudar con algun ejemplo o algo desde ya muchas gracias Big SmileBig SmileBig SmileBig SmileBig SmileBig Smile |