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
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