Hello everybody !
Is there someone who knows how to select a printer without using PrintDialog ?
I explain :
I'm using a Delphi 3.0 program to create and print WinWord files.
The user can choice a printer in a combobox which contains the list of available printers of Windows.
I'm using the printer (printers) object to propose this list and to know the printindex and the name of the selected printer.
In my code I send WordBasic orders to WinWord to create the word document.
But before I want to specifie the printer selected by the user to windows.
I know the existence of the OpenPrinter and SetPrinter functions of Windows but I don't know how to use it.
Can you give me some examples ?