This documentation is archived and is not being maintained.

PrintTicket.CopyCount Property

Gets or sets the number of copies for the print job.

Namespace: System.Printing
Assembly: ReachFramework (in reachframework.dll)

public Nullable<int> CopyCount { get; set; }
/** @property */
public Nullable<int> get_CopyCount ()

/** @property */
public void set_CopyCount (Nullable<int> value)

public function get CopyCount () : Nullable<int>

public function set CopyCount (value : Nullable<int>)

You cannot use this property in XAML.

Property Value

A nullable Int32 value that specifies how many copies to print.

Exception typeCondition


Calling code has attempted to set the property to a value less than 1.

A a null reference (Nothing in Visual Basic) value for this property means that this feature setting is not specified. Also, when the value is a null reference (Nothing in Visual Basic), the XML versions of the PrintTicket (see SaveTo and GetXmlStream) will not contain any markup for this feature.

This property corresponds to the Print Schema's JobCopiesAllDocuments keyword, not the DocumentCopiesAllPages keyword, or the PageCopies keyword.

You can test for the printer's maximum by using the MaxCopyCount property.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0