Print a XPS document to printer

Namespace: T.Toolkit
Assembly: T.Toolkit (in T.Toolkit.dll)

Public Shared Function PrintXPS( _ 
ByVal fileName As String, _ 
Optional ByVal useDefaultPrinter As Boolean = true, _ 
Optional ByVal waitFinish As Boolean = false _ 
) As String
This language is not supported or no code example is available.
public static string PrintXPS( 
string fileName
bool useDefaultPrinter = true, 
bool waitFinish = false 
)
This language is not supported or no code example is available.
public:  
static String^ PrintXPS( 
String^ fileName
bool useDefaultPrinter
bool waitFinish 
)
This language is not supported or no code example is available.
public static function PrintXPS( 
fileName : String
useDefaultPrinter : boolean
waitFinish : boolean 
) : String;
This language is not supported or no code example is available.

Parameters

fileName

Type: string

XPS document

useDefaultPrinter

Type: bool

Flag indicating whether default printer should be used

waitFinish

Type: bool

Flag indicating whether wait or not printing

Return Value

String containg error (on failure) or null string (on success)

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.5, 4

.NET Framework Client Profile

Supported in: 4, 3.5 SP1