XpsDocumentWriter XpsDocumentWriter XpsDocumentWriter XpsDocumentWriter Class

Definición

Proporciona métodos para escribir en un documento XPS o en una cola de impresión.Provides methods to write to an XPS document or print queue.

public ref class XpsDocumentWriter : System::Windows::Documents::Serialization::SerializerWriter
public class XpsDocumentWriter : System.Windows.Documents.Serialization.SerializerWriter
type XpsDocumentWriter = class
    inherit SerializerWriter
Public Class XpsDocumentWriter
Inherits SerializerWriter
Herencia
XpsDocumentWriterXpsDocumentWriterXpsDocumentWriterXpsDocumentWriter

Ejemplos

En el ejemplo siguiente se muestra cómo se crea una instancia de la clase XpsDocumentWriter.The following example shows how to create an instance of the XpsDocumentWriter class.


_xpsDocument = new XpsDocument(containerName,FileAccess.ReadWrite);

XpsDocumentWriter xpsdw = XpsDocument.CreateXpsDocumentWriter(_xpsDocument);


_xpsDocument = New XpsDocument(containerName,FileAccess.ReadWrite)

Dim xpsdw As XpsDocumentWriter = XpsDocument.CreateXpsDocumentWriter(_xpsDocument)

Comentarios

XpsDocumentWriter no tiene ningún constructor.XpsDocumentWriter has no constructor. Para crear un XpsDocumentWriter, use el método estático CreateXpsDocumentWriter de la clase XpsDocument o utilice uno de los métodos estáticos CreateXpsDocumentWriter de la clase PrintQueue.To create an XpsDocumentWriter, use the static CreateXpsDocumentWriter method of the XpsDocument class or use one of the static CreateXpsDocumentWriter methods of the PrintQueue class. El documento o la cola que crea el XpsDocumentWriter se convierte en el destino en el que escribe.The document or the queue that creates the XpsDocumentWriter becomes the target to which it writes.

Métodos

CancelAsync() CancelAsync() CancelAsync() CancelAsync()

Cancela la operación WriteAsync actual.Cancels the current WriteAsync operation.

CreateVisualsCollator() CreateVisualsCollator() CreateVisualsCollator() CreateVisualsCollator()

Devuelve un objeto VisualsToXpsDocument que puede escribir objetos Visual en un documento o una cola de impresión.Returns a VisualsToXpsDocument that can write Visual objects to a document or print queue.

CreateVisualsCollator(PrintTicket, PrintTicket) CreateVisualsCollator(PrintTicket, PrintTicket) CreateVisualsCollator(PrintTicket, PrintTicket) CreateVisualsCollator(PrintTicket, PrintTicket)

Devuelve un objeto VisualsToXpsDocument que puede escribir objetos Visual con valores de PrintTicket en un documento XPS o una cola de impresión.Returns a VisualsToXpsDocument that can write Visual objects with PrintTicket settings to an XPS document or print queue.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
raise_WritingCancelled(Object, WritingCancelledEventArgs) raise_WritingCancelled(Object, WritingCancelledEventArgs) raise_WritingCancelled(Object, WritingCancelledEventArgs) raise_WritingCancelled(Object, WritingCancelledEventArgs)

Genera el evento WritingCancelled.Raises the WritingCancelled event.

raise_WritingCompleted(Object, WritingCompletedEventArgs) raise_WritingCompleted(Object, WritingCompletedEventArgs) raise_WritingCompleted(Object, WritingCompletedEventArgs) raise_WritingCompleted(Object, WritingCompletedEventArgs)

Genera el evento WritingCompleted.Raises the WritingCompleted event.

raise_WritingPrintTicketRequired(Object, WritingPrintTicketRequiredEventArgs) raise_WritingPrintTicketRequired(Object, WritingPrintTicketRequiredEventArgs) raise_WritingPrintTicketRequired(Object, WritingPrintTicketRequiredEventArgs) raise_WritingPrintTicketRequired(Object, WritingPrintTicketRequiredEventArgs)

Genera el evento WritingPrintTicketRequired.Raises the WritingPrintTicketRequired event.

raise_WritingProgressChanged(Object, WritingProgressChangedEventArgs) raise_WritingProgressChanged(Object, WritingProgressChangedEventArgs) raise_WritingProgressChanged(Object, WritingProgressChangedEventArgs) raise_WritingProgressChanged(Object, WritingProgressChangedEventArgs)

Genera el evento WritingProgressChanged.Raises the WritingProgressChanged event.

ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

(Inherited from Object)
Write(DocumentPaginator) Write(DocumentPaginator) Write(DocumentPaginator) Write(DocumentPaginator)

Escribe contenido paginado de forma sincrónica de una clase DocumentPaginator especificada en la clase XpsDocument o PrintQueue de destino.Writes synchronously paginated content from a specified DocumentPaginator to the target XpsDocument or PrintQueue.

Write(DocumentPaginator, PrintTicket) Write(DocumentPaginator, PrintTicket) Write(DocumentPaginator, PrintTicket) Write(DocumentPaginator, PrintTicket)

Escribe de forma sincrónica contenido paginado de un DocumentPaginator junto con un PrintTicket en XpsDocument o PrintQueue de destino.Writes synchronously paginated content from a specified DocumentPaginator together with a PrintTicket to the target XpsDocument or PrintQueue.

Write(FixedDocument) Write(FixedDocument) Write(FixedDocument) Write(FixedDocument)

Escribe de forma sincrónica un FixedDocument especificado en XpsDocument o PrintQueue de destino.Writes synchronously a specified FixedDocument to the target XpsDocument or PrintQueue.

Write(FixedDocument, PrintTicket) Write(FixedDocument, PrintTicket) Write(FixedDocument, PrintTicket) Write(FixedDocument, PrintTicket)

Escribe de forma sincrónica una clase FixedDocument junto con una clase PrintTicket en la clase XpsDocument o PrintQueue de destino.Writes synchronously a FixedDocument together with a PrintTicket to the target XpsDocument or PrintQueue.

Write(FixedDocumentSequence) Write(FixedDocumentSequence) Write(FixedDocumentSequence) Write(FixedDocumentSequence)

Escribe de forma sincrónica un FixedDocumentSequence especificado en XpsDocument o PrintQueue de destino.Writes synchronously a specified FixedDocumentSequence to the target XpsDocument or PrintQueue.

Write(FixedDocumentSequence, PrintTicket) Write(FixedDocumentSequence, PrintTicket) Write(FixedDocumentSequence, PrintTicket) Write(FixedDocumentSequence, PrintTicket)

Escribe de forma sincrónica una clase FixedDocumentSequence especificada junto con una clase PrintTicket en la clase XpsDocument o PrintQueue de destino.Writes synchronously a specified FixedDocumentSequence together with a PrintTicket to the target XpsDocument or PrintQueue.

Write(FixedPage) Write(FixedPage) Write(FixedPage) Write(FixedPage)

Escribe de forma sincrónica un FixedPage especificado en XpsDocument o PrintQueue de destino.Writes synchronously a specified FixedPage to the target XpsDocument or PrintQueue.

Write(FixedPage, PrintTicket) Write(FixedPage, PrintTicket) Write(FixedPage, PrintTicket) Write(FixedPage, PrintTicket)

Escribe de forma sincrónica una clase FixedPage especificada junto con una clase PrintTicket en la clase XpsDocument o PrintQueue de destino.Writes synchronously a specified FixedPage together with a PrintTicket to the target XpsDocument or PrintQueue.

Write(String) Write(String) Write(String) Write(String)

Escribe asincrónicamente un documento XPS especificado en el elemento XpsDocument o PrintQueue de destino.Synchronously writes a specified XPS document to the target XpsDocument or PrintQueue.

Write(String, XpsDocumentNotificationLevel) Write(String, XpsDocumentNotificationLevel) Write(String, XpsDocumentNotificationLevel) Write(String, XpsDocumentNotificationLevel)

Escribe sincrónicamente un determinado documento XPSXPS en la clase XpsDocument o PrintQueue de destino.Writes synchronously a specified XPSXPS document to the target XpsDocument or PrintQueue.

Write(Visual) Write(Visual) Write(Visual) Write(Visual)

Escribe de forma sincrónica un Visual especificado en XpsDocument o PrintQueue de destino.Writes synchronously a specified Visual to the target XpsDocument or PrintQueue.

Write(Visual, PrintTicket) Write(Visual, PrintTicket) Write(Visual, PrintTicket) Write(Visual, PrintTicket)

Escribe de forma sincrónica una clase Visual especificada junto con una clase PrintTicket en la clase XpsDocument o PrintQueue de destino.Writes synchronously a specified Visual together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(DocumentPaginator) WriteAsync(DocumentPaginator) WriteAsync(DocumentPaginator) WriteAsync(DocumentPaginator)

Escribe contenido paginado de forma asincrónica de una clase DocumentPaginator especificada en la clase XpsDocument o PrintQueue de destino.Writes asynchronously paginated content from a specified DocumentPaginator to the target XpsDocument or PrintQueue.

WriteAsync(DocumentPaginator, Object) WriteAsync(DocumentPaginator, Object) WriteAsync(DocumentPaginator, Object) WriteAsync(DocumentPaginator, Object)

Escribe contenido paginado de forma asincrónica de una clase DocumentPaginator especificada en la clase XpsDocument o PrintQueue de destino.Writes asynchronously paginated content from a specified DocumentPaginator to the target XpsDocument or PrintQueue.

WriteAsync(DocumentPaginator, PrintTicket) WriteAsync(DocumentPaginator, PrintTicket) WriteAsync(DocumentPaginator, PrintTicket) WriteAsync(DocumentPaginator, PrintTicket)

Escribe contenido paginado de forma asincrónica de un DocumentPaginator especificado junto con un PrintTicket en el XpsDocument o PrintQueue de destino.Writes asynchronously paginated content from a specified DocumentPaginator together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(DocumentPaginator, PrintTicket, Object) WriteAsync(DocumentPaginator, PrintTicket, Object) WriteAsync(DocumentPaginator, PrintTicket, Object) WriteAsync(DocumentPaginator, PrintTicket, Object)

Escribe contenido paginado de forma asincrónica de un DocumentPaginator especificado junto con un PrintTicket en el XpsDocument o PrintQueue de destino.Writes asynchronously paginated content from a specified DocumentPaginator together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocument) WriteAsync(FixedDocument) WriteAsync(FixedDocument) WriteAsync(FixedDocument)

Escribe de forma asincrónica un FixedDocument especificado en el XpsDocument o PrintQueue de destino.Writes asynchronously a specified FixedDocument to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocument, Object) WriteAsync(FixedDocument, Object) WriteAsync(FixedDocument, Object) WriteAsync(FixedDocument, Object)

Escribe de forma asincrónica un FixedDocument especificado en el XpsDocument o PrintQueue de destino.Writes asynchronously a specified FixedDocument to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocument, PrintTicket) WriteAsync(FixedDocument, PrintTicket) WriteAsync(FixedDocument, PrintTicket) WriteAsync(FixedDocument, PrintTicket)

Escribe de forma asincrónica una clase FixedDocument especificada junto con una clase PrintTicket en la clase XpsDocument o PrintQueue de destino.Writes asynchronously a specified FixedDocument together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocument, PrintTicket, Object) WriteAsync(FixedDocument, PrintTicket, Object) WriteAsync(FixedDocument, PrintTicket, Object) WriteAsync(FixedDocument, PrintTicket, Object)

Escribe de forma asincrónica una clase FixedDocument especificada junto con una clase PrintTicket en la clase XpsDocument o PrintQueue de destino.Writes asynchronously a specified FixedDocument together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocumentSequence) WriteAsync(FixedDocumentSequence) WriteAsync(FixedDocumentSequence) WriteAsync(FixedDocumentSequence)

Escribe de forma asincrónica un FixedDocumentSequence especificado en el XpsDocument o PrintQueue de destino.Writes asynchronously a specified FixedDocumentSequence to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocumentSequence, Object) WriteAsync(FixedDocumentSequence, Object) WriteAsync(FixedDocumentSequence, Object) WriteAsync(FixedDocumentSequence, Object)

Escribe de forma asincrónica un FixedDocumentSequence especificado en el XpsDocument o PrintQueue de destino.Writes asynchronously a specified FixedDocumentSequence to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocumentSequence, PrintTicket) WriteAsync(FixedDocumentSequence, PrintTicket) WriteAsync(FixedDocumentSequence, PrintTicket) WriteAsync(FixedDocumentSequence, PrintTicket)

Escribe de forma asincrónica una clase FixedDocumentSequence especificada junto con una clase PrintTicket en la clase XpsDocument o PrintQueue de destino.Writes asynchronously a specified FixedDocumentSequence together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(FixedDocumentSequence, PrintTicket, Object) WriteAsync(FixedDocumentSequence, PrintTicket, Object) WriteAsync(FixedDocumentSequence, PrintTicket, Object) WriteAsync(FixedDocumentSequence, PrintTicket, Object)

Escribe de forma asincrónica una clase FixedDocumentSequence especificada junto con una clase PrintTicket en la clase XpsDocument o PrintQueue de destino.Writes asynchronously a specified FixedDocumentSequence together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(FixedPage) WriteAsync(FixedPage) WriteAsync(FixedPage) WriteAsync(FixedPage)

Escribe de forma asincrónica un FixedPage especificado en el XpsDocument o PrintQueue de destino.Writes asynchronously a specified FixedPage to the target XpsDocument or PrintQueue.

WriteAsync(FixedPage, Object) WriteAsync(FixedPage, Object) WriteAsync(FixedPage, Object) WriteAsync(FixedPage, Object)

Escribe de forma asincrónica un FixedPage especificado en el XpsDocument o PrintQueue de destino.Writes asynchronously a specified FixedPage to the target XpsDocument or PrintQueue.

WriteAsync(FixedPage, PrintTicket) WriteAsync(FixedPage, PrintTicket) WriteAsync(FixedPage, PrintTicket) WriteAsync(FixedPage, PrintTicket)

Escribe de forma asincrónica una clase FixedPage especificada junto con una clase PrintTicket en la clase XpsDocument o PrintQueue de destino.Writes asynchronously a specified FixedPage together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(FixedPage, PrintTicket, Object) WriteAsync(FixedPage, PrintTicket, Object) WriteAsync(FixedPage, PrintTicket, Object) WriteAsync(FixedPage, PrintTicket, Object)

Escribe de forma asincrónica una clase FixedPage especificada junto con una clase PrintTicket en la clase XpsDocument o PrintQueue de destino.Writes asynchronously a specified FixedPage together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(String) WriteAsync(String) WriteAsync(String) WriteAsync(String)

Escribe de forma asincrónica un determinado documento XPSXPS en la clase XpsDocument o PrintQueue de destino.Writes asynchronously a specified XPSXPS document to the target XpsDocument or PrintQueue.

WriteAsync(String, XpsDocumentNotificationLevel) WriteAsync(String, XpsDocumentNotificationLevel) WriteAsync(String, XpsDocumentNotificationLevel) WriteAsync(String, XpsDocumentNotificationLevel)

Escribe de forma asincrónica un documento XPSXPS especificado con la opción de notificación en el XpsDocument o PrintQueue de destino.Writes asynchronously a specified XPSXPS document with notification option to the target XpsDocument or PrintQueue.

WriteAsync(Visual) WriteAsync(Visual) WriteAsync(Visual) WriteAsync(Visual)

Escribe de forma asincrónica un Visual especificado en el XpsDocument o PrintQueue de destino.Writes asynchronously a specified Visual to the target XpsDocument or PrintQueue.

WriteAsync(Visual, Object) WriteAsync(Visual, Object) WriteAsync(Visual, Object) WriteAsync(Visual, Object)

Escribe de forma asincrónica un Visual especificado en el XpsDocument o PrintQueue de destino.Writes asynchronously a specified Visual to the target XpsDocument or PrintQueue.

WriteAsync(Visual, PrintTicket) WriteAsync(Visual, PrintTicket) WriteAsync(Visual, PrintTicket) WriteAsync(Visual, PrintTicket)

Escribe de forma asincrónica una clase Visual especificada junto con una clase PrintTicket en la clase XpsDocument o PrintQueue de destino.Writes asynchronously a specified Visual together with a PrintTicket to the target XpsDocument or PrintQueue.

WriteAsync(Visual, PrintTicket, Object) WriteAsync(Visual, PrintTicket, Object) WriteAsync(Visual, PrintTicket, Object) WriteAsync(Visual, PrintTicket, Object)

Escribe de forma asincrónica una clase Visual especificada junto con una clase PrintTicket en la clase XpsDocument o PrintQueue de destino.Writes asynchronously a specified Visual together with a PrintTicket to the target XpsDocument or PrintQueue.

Eventos

WritingCancelled WritingCancelled WritingCancelled WritingCancelled

Se produce cuando se cancela una operación de Write o WriteAsync.Occurs when a Write or WriteAsync operation is canceled.

WritingCompleted WritingCompleted WritingCompleted WritingCompleted

Se produce cuando finaliza una operación de escritura.Occurs when a write operation finishes.

WritingPrintTicketRequired WritingPrintTicketRequired WritingPrintTicketRequired WritingPrintTicketRequired

Se produce justo antes de que un método Write o WriteAsync agregue un PrintTicket a un documento o una cola de impresión.Occurs just before a Write or WriteAsync method adds a PrintTicket to a document or print queue.

WritingProgressChanged WritingProgressChanged WritingProgressChanged WritingProgressChanged

Se produce cuando XpsDocumentWriter actualiza su progreso.Occurs when the XpsDocumentWriter updates its progress.

Se aplica a