rfresh
Active member
- Joined
- Aug 23, 2012
- Messages
- 26
- Programming Experience
- 1-3
Here is my code to print a richtextbox file.
But I have two problems:
1. It doesn't print any text. Just blank paper comes out of my printer.
2. I'd like to be able to optionally select text to print as an option. I've enabled that in my printDialog component.
Thanks for any help.
But I have two problems:
1. It doesn't print any text. Just blank paper comes out of my printer.
2. I'd like to be able to optionally select text to print as an option. I've enabled that in my printDialog component.
Thanks for any help.
C#:
PrintDocument printDoc = new PrintDocument();
printDoc.DocumentName = mFullPathFileName;
printDialog.Document = printDoc;
DialogResult result = printDialog.ShowDialog();
if (result == DialogResult.OK)
{
printDoc.Print();
}