Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Problems

Status
Not open for further replies.

alexbo

Programmer
Jul 26, 2002
20
IT
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top