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
[C#]
public PaperSource PaperSource {get; set;}
[C++]
public: __property PaperSource* get_PaperSource();
public: __property void set_PaperSource(PaperSource*);
[JScript]
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.

Exceptions

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

Remarks

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.

Requirements

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

Show: