Hola ...
estoy imprimiendo desde C# mediante la siguiente funcion: (quitando algunas
cosas que no vienen al caso)
private void printer_doc_PrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e)
{
bodyFont = new Font("Arial", 10);
e.Graphics.DrawString("ABCDEFGHIJKLMNOPQRSTVUWXYZ", bodyFont, Brushes.Black,
5, 7, new StringFormat());
e.HasMorePages = false;
}
El problema es que no imprime: ABCDEFGHIJKLMNOPQRSTVUWXYZ sino que
imprime: $%&' ( ) * + ,-. / 0 1 2 3 4 5 6 7 9 8: ; <
incluso declare una variable
string linea = "Prueba";
y que luego uso como :
e.Graphics.DrawString(linea, bodyFont, Brushes.Black, 5, 7, new
StringFormat());
y aun asi no imprime correctamente.
¿que estoy haciendo mal?
Gracias de antemano por su ayuda.
Leer las respuestas