shane

shane

  • NA
  • 26
  • 0

PrintDialog

Apr 3 2005 11:29 AM
How do you get the user selected Print Resolution from a PrintDialog? When the Print Dialog opens there is a button which opens a further dialog containing other printer properties such as Orientation (Landscape or Portrait) and Quality (Best or Normal or Draft) I can get the orientation property selected using the following code; bool isLandscape = printDialog.PrinterSettings.DefaultPageSettings.Landscape; True if the user has selected "Landscape" and false for "Portrait" The print resolution never seems to change ie.. the following line always returns "Custom" even when High, Normal or Draft are selected. PrinterResolution pRes = printDialog.PrinterSettings.DefaultPageSettings.PrinterResolution; MessageBox.Show(pRes.Kind.ToString()); How do you get the selection the user has made?

Answers (1)