Hi all,
I have searched and found lots of articles about changing the default printer and they all seem to be based on using the printers name. I am writing an app that has no GUI and runs over night that pulls records from a database and based on the criteria in a particular field prints to different printers. There will be 3 different printers required but they will not always have the same names so I cannot hard code the printer names into the app as it would not work on all the machines.
Does anyone have any idea how I can change the default printer without using the printer names.
Hope this makes sense.
Cheers.
Everything has an answer, it's just knowing the right question to ask. !!!!
I have searched and found lots of articles about changing the default printer and they all seem to be based on using the printers name. I am writing an app that has no GUI and runs over night that pulls records from a database and based on the criteria in a particular field prints to different printers. There will be 3 different printers required but they will not always have the same names so I cannot hard code the printer names into the app as it would not work on all the machines.
Does anyone have any idea how I can change the default printer without using the printer names.
Hope this makes sense.
Cheers.
Everything has an answer, it's just knowing the right question to ask. !!!!