Am I able to change the default printer for a delphi application that I am running.
That is, I have a default printer set up (call it PRINTER_ONE) for Windows.
When I run my Delphi application I want the default printer to change to PRINTER_TWO. Is this do-able for the duration of the program that I am running ?
I don't want to change the default printer for Windows as a whole - else this will cause problems if I have any other applications open that may need to be printed from (i.e. OutLook, Word, etc.)
I want the printer to be changed for the scope of the application / session running.
Is this achievable ?
I could be missing something very simple here.
Any help would be appreciated.
Steve
That is, I have a default printer set up (call it PRINTER_ONE) for Windows.
When I run my Delphi application I want the default printer to change to PRINTER_TWO. Is this do-able for the duration of the program that I am running ?
I don't want to change the default printer for Windows as a whole - else this will cause problems if I have any other applications open that may need to be printed from (i.e. OutLook, Word, etc.)
I want the printer to be changed for the scope of the application / session running.
Is this achievable ?
I could be missing something very simple here.
Any help would be appreciated.
Steve