how to test if a printer local or not is connected to the computer

  • Thread starter Thread starter Pascal
  • Start date Start date
P

Pascal

Hello, I started in .Net and I do not know how to test the
presence of printers installed on the PC before printing.
If printers exist then
'do that
else
do this
end

thank you for your help
Pascal
 
Pascal said:
Hello, I started in .Net and I do not know how to test the presence of
printers installed on the PC before printing.

'System.Drawing.Printing.PrinterSettings.InstalledPrinters.Count'.

If you are using the VB PowerPack:

'Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6.Printers.Count'.
 
Back
Top