list down printers on a combo box

  • Thread starter Thread starter Rodolfo Fontes
  • Start date Start date
R

Rodolfo Fontes

Hi group,

I have a program made on VBA Access and i wanna list down all printers
avaible on windows( locals or on networks) on a combo box.
People has sugest me the following code, but it doesn't work.
#######
Dim Impressora As Printer

For Each Impressora In Printers
CMB_Printer.AddItem Impressora.DeviceName 'Printer.DeviceName
Next
#######

ERROR MESSAGE
"The type wasn't defineid by the user"

Any suggestion?


Thanks,
Rodolfo Fontes
 
Back
Top