0

There are 3 printers in the printer list, but is there a way to hide or disable one of them when I call the printdialog? For example, how to disable or hide the printers which names start with "Brother MFC", so that only allows users to select "HP" printers?

    PrintDialog printDlg = newPrintDialog();  
    PrintDocument printDoc = newPrintDocument();  
    printDoc.DocumentName = "Print Document";  
    printDlg.Document = printDoc;  
    printDlg.AllowSelection = true;  
    printDlg.AllowSomePages = true;  
    //Call ShowDialog  
    if (printDlg.ShowDialog() == DialogResult.OK) printDoc.Print();  
3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.