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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Change Default Printer?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have written a rather unusual program which formats prints from our mainframe and sends each one to a specified network printer. The program runs all the time unattended - there is no user interface. The whole thing works fine, except for setting the paper orientation to Portrait or Landscape. I can do this by modifying the PRINTDLG structure retrieved using CPrintDialog::GetDefaults(), but
the problem is I am not always printing to the default printer.

I have spent days going round in circles with no success.
I either need to be able to specify the orientation somehow
directly using the DC which seems impossible, or find a way
of making a particular printer the default, WITHOUT displaying the PrintSetupDialog and accepting any user input.

Any suggestions would be very much appeciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top