This documentation is archived and is not being maintained.

PageSettings.PaperSource Property

Gets or sets the page's paper source (for example, the printer's upper tray).

[Visual Basic]
Public Property PaperSource As PaperSource
public PaperSource PaperSource {get; set;}
public: __property PaperSource* get_PaperSource();
public: __property void set_PaperSource(PaperSource*);
public function get PaperSource() : PaperSource;
public function set PaperSource(PaperSource);

Property Value

A PaperSource that specifies the source of the paper. Defaults to the printer's default paper source.


Exception Type Condition
InvalidPrinterException The printer named in the PrinterSettings.PrinterName property does not exist or there is no default printer installed.


An instance of PaperSource represents the source of the paper through the PaperSource.Kind property, which contains one of the PaperSourceKind values.

Set the PaperSource property for the page to a valid PaperSource, available through the PrinterSettings.PaperSources collection.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

PageSettings Class | PageSettings Members | System.Drawing.Printing Namespace | PaperSource | PaperSource.Kind | PaperSourceKind | PrinterSettings.PaperSources