Hi Everybody,
I have the following problem:
I retrive from the current machine all the printers that the machine has configured, I search in the list for the "win2pdf" printer, If the printer is installed I have to set that printer, so it will print on that printer.
The problem is that when I use the OnPreparePrinting function, this function prints on the default printer, or on the one the user chooses from the CPrintDialog box; instead I have to set the "win2pdf" automaticly, without prompting the user for the choice.
From my point of view there are two ways, one to set by code the default printer to "win2pdf" (I don't know how to do it) or set the printer to "win2pdf" directly (I don't know how to do it either).
I'm glad if somebody have some suggestions, thanks in advane Alex
I have the following problem:
I retrive from the current machine all the printers that the machine has configured, I search in the list for the "win2pdf" printer, If the printer is installed I have to set that printer, so it will print on that printer.
The problem is that when I use the OnPreparePrinting function, this function prints on the default printer, or on the one the user chooses from the CPrintDialog box; instead I have to set the "win2pdf" automaticly, without prompting the user for the choice.
From my point of view there are two ways, one to set by code the default printer to "win2pdf" (I don't know how to do it) or set the printer to "win2pdf" directly (I don't know how to do it either).
I'm glad if somebody have some suggestions, thanks in advane Alex