Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PrintDialog.PrintTicket Property

Gets or sets the PrintTicket that is used by the PrintDialog when the user clicks Print for the current print job.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public PrintTicket PrintTicket { get; set; }
/** @property */
public PrintTicket get_PrintTicket ()

/** @property */
public void set_PrintTicket (PrintTicket value)

public function get PrintTicket () : PrintTicket

public function set PrintTicket (value : PrintTicket)

<object>
  <object.PrintTicket>
    <PrintTicket .../>
  </object.PrintTicket>
</object>

Property Value

A PrintTicket that is used the next time the Print button in the dialog box is clicked. Setting this PrintTicket property does not validate or modify the specified PrintTicket for a particular PrintQueue. If needed, use the MergeAndValidatePrintTicket method to create a PrintQueue-specific PrintTicket that is valid for a given printer.

Neither setting nor getting this property validates the PrintTicket. To validate it use MergeAndValidatePrintTicket.

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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft