Is there a way of changing the port settings of a printer programatically?
i.e a printer is set up with its port being an ip address. I need to be able to change that ip address.
I'm using VB or VBA.
Thanks,
Adam
Printable View
Is there a way of changing the port settings of a printer programatically?
i.e a printer is set up with its port being an ip address. I need to be able to change that ip address.
I'm using VB or VBA.
Thanks,
Adam
Assuming the logged on user has sufficient priveleges, SetPrinter API call with the level 2 data structure PRINTER_INFO_2 can change this (and other settings)
errrm.
Any examples?
Thanks.
Changing the status of the selected printer from Visual Basic is one I wrote earlier....also the ApiPrinter class code