Imprimir texto desde un control usando el cuadro de diálogo Imprimir

I have a .NET 4.0 application and I need to take the text from a richtextbox control and print it using the print dialog control so the user can pick the printer to use. I know I could generate a file containing the text and print that, but I don't want to go this route if possible.

Is there a way to do what I'm wanting?

preguntado el 08 de noviembre de 11 a las 13:11

1 Respuestas

Hans' link was exactly what I needed. I decided to enhance it by offering another link.

Versión C #

Versión de VB.NET

I would have accepted his answer, but it was a comment and I didn't see how to accept that; I up-voted instead.

respondido 08 nov., 11:18

Hahaha.. Bounty removed, as it can't be awarded to a comment. Thank you for turning Hans' comment into a useful answer. - Tim Post

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.