I want to print my TextBox
and here is my code:
private void MenuItemPrint()
{
if (FileName != "")
{
PrintDocument document = new PrintDocument();
document.PrinterSettings.PrintFileName = FileName;
document.Print();
}
}
and it doesn't work. What should I do?
Best Answer
Try This: