gtg93 (26th June 2014)
Button 1 would be renamed to Add Printer and the drop down would be pre populated with all the possible printers whether this is all the printers they can add around the school or just printers in the area they are currently at etc ??
Failing that if they select which printer they want to add you could just get your vba to open an explorer window to the relevant print server and they just double click on the printer they want to install which if setup correctly should push / install the drivers onto the client and add the printer ?
If its Art Printer on print server FNPART01 then just a unc path to \\FNPART01 .....
Last edited by mac_shinobi; 25th June 2014 at 04:46 PM.
Possibly the Automagic version http://visualbasic.ittoolbox.com/gro...inters-2181211 list of print servers plus a little extra code and it is dynamic.
Last edited by SYNACK; 25th June 2014 at 06:13 PM.
mac_shinobi (26th June 2014)
Not sure if this is correct but maybe create a function that you can pass parameters to so as to add the printer(s) depending on the value the user selects from the drop down
Dim strSvrName As String
Function InstallPrinter(byval strServer, byVal strShareName)
'Code to install / add the printer depending on selection made
Maybe use a select case so if they select printers that are on one print server it will know that they are on this print server versus if they select another printer which is on a different print server so something along the lines of
Select Case cboSelection.Value
Case 1 or 2 or 3:
strSvrName = "PrintServer_One"
Case 4 or 5 or 6:
strSvrName = "PrintServer_Two"
MsgBox "Error message or wrong selection made etc"
With the 2nd parameter you may have to do a bit more to translate the selected item into the actual printer share name before you can call the function ??
I suppose it depends on how you are installing the printers on there machines though as to how you would get it to add or install the printer
Last edited by mac_shinobi; 26th June 2014 at 09:23 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)