SaveTo Method
Collapse the table of content
Expand the table of content

PrintTicket.SaveTo Method

Saves the PrintTicket settings to a Stream object by using an XML format that conforms to the Print Schema.

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

public void SaveTo (
	Stream outStream
public void SaveTo (
	Stream outStream
public function SaveTo (
	outStream : Stream
You cannot use methods in XAML.



The Stream that holds the saved PrintTicket.

This method does not reset the read-write position of the stream back to its original position. You should reset it immediately after calling this method.

If any properties of the PrintTicket are a null reference (Nothing in Visual Basic), they will simply not be included in the XML markup.

If the PrintTicket object was constructed with a PrintTicket document that contains markup elements not represented by any of the PrintTicket class's public properties, those elements will be included in the PrintTicket document saved by this method.

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

Community Additions

© 2016 Microsoft