XpsDocumentWriter.WriteAsync 메서드

정의

를 만든 XpsDocument에 비동기적으로 PrintQueueXpsDocumentWriter 씁니다.

오버로드

Name Description
WriteAsync(FixedPage, Object)

대상 FixedPage 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

WriteAsync(FixedPage, PrintTicket)

대상 FixedPage 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

WriteAsync(Visual, Object)

대상 Visual 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

WriteAsync(Visual, PrintTicket)

대상 Visual 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

WriteAsync(FixedDocumentSequence, PrintTicket, Object)

대상 FixedDocumentSequence 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

WriteAsync(FixedDocument, PrintTicket, Object)

대상 FixedDocument 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

WriteAsync(FixedPage, PrintTicket, Object)

대상 FixedPage 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

WriteAsync(Visual, PrintTicket, Object)

대상 Visual 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

WriteAsync(FixedDocumentSequence, PrintTicket)

대상 FixedDocumentSequence 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

WriteAsync(DocumentPaginator, PrintTicket, Object)

지정된 DocumentPaginator 콘텐츠에서 대상 PrintTicket 또는 XpsDocument에 대해 비동기적으로 페이지를 매긴 콘텐츠를 함께 PrintQueue 씁니다.

WriteAsync(FixedDocumentSequence, Object)

대상 FixedDocumentSequence 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

WriteAsync(FixedDocumentSequence)

대상 FixedDocumentSequence 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

WriteAsync(FixedDocument, Object)

대상 FixedDocument 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

WriteAsync(DocumentPaginator, PrintTicket)

지정된 DocumentPaginator 콘텐츠에서 대상 PrintTicket 또는 XpsDocument에 대해 비동기적으로 페이지를 매긴 콘텐츠를 함께 PrintQueue 씁니다.

WriteAsync(DocumentPaginator, Object)

지정된 DocumentPaginator 대상 XpsDocument 또는 PrintQueue에 대해 비동기적으로 페이지를 매긴 콘텐츠를 씁니다.

WriteAsync(String, XpsDocumentNotificationLevel)

알림 옵션이 있는 지정된 XPS 문서를 대상 XpsDocument 또는 PrintQueue.에 비동기적으로 씁니다.

WriteAsync(Visual)

대상 Visual 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

WriteAsync(FixedPage)

대상 FixedPage 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

WriteAsync(FixedDocument)

대상 FixedDocument 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

WriteAsync(DocumentPaginator)

지정된 DocumentPaginator 대상 XpsDocument 또는 PrintQueue에 대해 비동기적으로 페이지를 매긴 콘텐츠를 씁니다.

WriteAsync(String)

지정된 XPS 문서를 대상 XpsDocument 또는 PrintQueue에 비동기적으로 씁니다.

WriteAsync(FixedDocument, PrintTicket)

대상 FixedDocument 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

WriteAsync(FixedPage, Object)

대상 FixedPage 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::FixedPage ^ fixedPage, System::Object ^ userSuppliedState);
public override void WriteAsync(System.Windows.Documents.FixedPage fixedPage, object userSuppliedState);
override this.WriteAsync : System.Windows.Documents.FixedPage * obj -> unit
Public Overrides Sub WriteAsync (fixedPage As FixedPage, userSuppliedState As Object)

매개 변수

fixedPage
FixedPage

작성된 페이지입니다.

userSuppliedState
Object

비동기 작업을 식별하고 연결할 사용자 지정 개체입니다.

적용 대상

WriteAsync(FixedPage, PrintTicket)

대상 FixedPage 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::FixedPage ^ fixedPage, System::Printing::PrintTicket ^ printTicket);
public override void WriteAsync(System.Windows.Documents.FixedPage fixedPage, System.Printing.PrintTicket printTicket);
override this.WriteAsync : System.Windows.Documents.FixedPage * System.Printing.PrintTicket -> unit
Public Overrides Sub WriteAsync (fixedPage As FixedPage, printTicket As PrintTicket)

매개 변수

fixedPage
FixedPage

작성된 페이지입니다.

printTicket
PrintTicket

PrintTicket 페이지의 기본 인쇄 기본 설정을 나타내는 A입니다.

설명

이 메서드는 특정printTicket에 대해 지정된 PrintQueue 유효성을 검사하거나 수정하지 않습니다. 필요한 경우 메서드를 MergeAndValidatePrintTicket 사용하여 지정된 프린터에 대해 PrintTicket 유효한 특정 프린터를 만듭니 PrintQueue 다.

이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 Write(FixedPage, PrintTicket)throw된 예외를 참조하세요.

적용 대상

WriteAsync(Visual, Object)

대상 Visual 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Media::Visual ^ visual, System::Object ^ userSuppliedState);
public override void WriteAsync(System.Windows.Media.Visual visual, object userSuppliedState);
override this.WriteAsync : System.Windows.Media.Visual * obj -> unit
Public Overrides Sub WriteAsync (visual As Visual, userSuppliedState As Object)

매개 변수

visual
Visual

Visual 기록된 값입니다.

userSuppliedState
Object

비동기 작업을 식별하고 연결할 사용자 지정 개체입니다.

설명

일괄 처리를 작성하려면 .를 Visual사용합니다 VisualsToXpsDocument.

적용 대상

WriteAsync(Visual, PrintTicket)

대상 Visual 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Media::Visual ^ visual, System::Printing::PrintTicket ^ printTicket);
public override void WriteAsync(System.Windows.Media.Visual visual, System.Printing.PrintTicket printTicket);
override this.WriteAsync : System.Windows.Media.Visual * System.Printing.PrintTicket -> unit
Public Overrides Sub WriteAsync (visual As Visual, printTicket As PrintTicket)

매개 변수

visual
Visual

Visual 기록된 값입니다.

printTicket
PrintTicket

PrintTicket 문서의 기본 인쇄 기본 설정을 나타내는 A입니다.

설명

일괄 처리를 작성하려면 .를 Visual사용합니다 VisualsToXpsDocument.

이 메서드는 특정printTicket에 대해 지정된 PrintQueue 유효성을 검사하거나 수정하지 않습니다. 필요한 경우 메서드를 MergeAndValidatePrintTicket 사용하여 지정된 프린터에 대해 PrintTicket 유효한 특정 프린터를 만듭니 PrintQueue 다.

이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 Write(Visual, PrintTicket)throw된 예외를 참조하세요.

적용 대상

WriteAsync(FixedDocumentSequence, PrintTicket, Object)

대상 FixedDocumentSequence 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::FixedDocumentSequence ^ fixedDocumentSequence, System::Printing::PrintTicket ^ printTicket, System::Object ^ userSuppliedState);
public override void WriteAsync(System.Windows.Documents.FixedDocumentSequence fixedDocumentSequence, System.Printing.PrintTicket printTicket, object userSuppliedState);
override this.WriteAsync : System.Windows.Documents.FixedDocumentSequence * System.Printing.PrintTicket * obj -> unit
Public Overrides Sub WriteAsync (fixedDocumentSequence As FixedDocumentSequence, printTicket As PrintTicket, userSuppliedState As Object)

매개 변수

fixedDocumentSequence
FixedDocumentSequence

작성할 문서 집합입니다.

printTicket
PrintTicket

PrintTicket 문서 집합의 기본 인쇄 기본 설정을 나타내는 A입니다.

userSuppliedState
Object

비동기 작업을 식별하고 연결할 사용자 지정 개체입니다.

설명

WriteAsync는 을 만든 XpsDocument문서 집합을 PrintQueueXpsDocumentWriter 비동기적으로 씁니다. 작성된 데이터에는 호출자가 이벤트 처리기에 전달하려는 추가 정보가 포함 PrintTicket 됩니다.

클래스에는 XpsDocument 단수 이름이 XpsDocument 있지만 하나 FixedDocument 또는 여러 문서 집합일 수 있습니다. 이 메서드는 FixedDocument 기존 시퀀스에 요소 집합 FixedDocument 또는 집합을 추가합니다.

이 메서드는 특정printTicket에 대해 지정된 PrintQueue 유효성을 검사하거나 수정하지 않습니다. 필요한 경우 메서드를 MergeAndValidatePrintTicket 사용하여 지정된 프린터에 대해 PrintTicket 유효한 특정 프린터를 만듭니 PrintQueue 다.

적용 대상

WriteAsync(FixedDocument, PrintTicket, Object)

대상 FixedDocument 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::FixedDocument ^ fixedDocument, System::Printing::PrintTicket ^ printTicket, System::Object ^ userSuppliedState);
public override void WriteAsync(System.Windows.Documents.FixedDocument fixedDocument, System.Printing.PrintTicket printTicket, object userSuppliedState);
override this.WriteAsync : System.Windows.Documents.FixedDocument * System.Printing.PrintTicket * obj -> unit
Public Overrides Sub WriteAsync (fixedDocument As FixedDocument, printTicket As PrintTicket, userSuppliedState As Object)

매개 변수

fixedDocument
FixedDocument

작성된 문서입니다.

printTicket
PrintTicket

PrintTicket 문서의 기본 인쇄 기본 설정을 나타내는 A입니다.

userSuppliedState
Object

비동기 작업을 식별하고 연결할 사용자 지정 개체입니다.

설명

클래스에는 XpsDocument 단수 이름이 XpsDocument 있지만 하나 FixedDocument 또는 여러 문서 집합일 수 있습니다. 이 메서드는 집합에 FixedDocument 추가합니다.

이 메서드는 특정printTicket에 대해 지정된 PrintQueue 유효성을 검사하거나 수정하지 않습니다. 필요한 경우 메서드를 MergeAndValidatePrintTicket 사용하여 지정된 프린터에 대해 PrintTicket 유효한 특정 프린터를 만듭니 PrintQueue 다.

적용 대상

WriteAsync(FixedPage, PrintTicket, Object)

대상 FixedPage 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::FixedPage ^ fixedPage, System::Printing::PrintTicket ^ printTicket, System::Object ^ userSuppliedState);
public override void WriteAsync(System.Windows.Documents.FixedPage fixedPage, System.Printing.PrintTicket printTicket, object userSuppliedState);
override this.WriteAsync : System.Windows.Documents.FixedPage * System.Printing.PrintTicket * obj -> unit
Public Overrides Sub WriteAsync (fixedPage As FixedPage, printTicket As PrintTicket, userSuppliedState As Object)

매개 변수

fixedPage
FixedPage

작성된 페이지입니다.

printTicket
PrintTicket

PrintTicket 페이지의 기본 인쇄 기본 설정을 나타내는 A입니다.

userSuppliedState
Object

비동기 작업을 식별하고 연결할 사용자 지정 개체입니다.

설명

이 메서드는 특정printTicket에 대해 지정된 PrintQueue 유효성을 검사하거나 수정하지 않습니다. 필요한 경우 메서드를 MergeAndValidatePrintTicket 사용하여 지정된 프린터에 대해 PrintTicket 유효한 특정 프린터를 만듭니 PrintQueue 다.

적용 대상

WriteAsync(Visual, PrintTicket, Object)

대상 Visual 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Media::Visual ^ visual, System::Printing::PrintTicket ^ printTicket, System::Object ^ userSuppliedState);
public override void WriteAsync(System.Windows.Media.Visual visual, System.Printing.PrintTicket printTicket, object userSuppliedState);
override this.WriteAsync : System.Windows.Media.Visual * System.Printing.PrintTicket * obj -> unit
Public Overrides Sub WriteAsync (visual As Visual, printTicket As PrintTicket, userSuppliedState As Object)

매개 변수

visual
Visual

Visual 기록된 값입니다.

printTicket
PrintTicket

PrintTicket 문서의 기본 인쇄 기본 설정을 나타내는 A입니다.

userSuppliedState
Object

비동기 작업을 식별하고 연결할 사용자 지정 개체입니다.

설명

여러 Visual 요소를 작성하려면 .를 사용합니다 VisualsToXpsDocument.

이 메서드는 특정printTicket에 대해 지정된 PrintQueue 유효성을 검사하거나 수정하지 않습니다. 필요한 경우 메서드를 MergeAndValidatePrintTicket 사용하여 지정된 프린터에 대해 PrintTicket 유효한 특정 프린터를 만듭니 PrintQueue 다.

적용 대상

WriteAsync(FixedDocumentSequence, PrintTicket)

대상 FixedDocumentSequence 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::FixedDocumentSequence ^ fixedDocumentSequence, System::Printing::PrintTicket ^ printTicket);
public override void WriteAsync(System.Windows.Documents.FixedDocumentSequence fixedDocumentSequence, System.Printing.PrintTicket printTicket);
override this.WriteAsync : System.Windows.Documents.FixedDocumentSequence * System.Printing.PrintTicket -> unit
Public Overrides Sub WriteAsync (fixedDocumentSequence As FixedDocumentSequence, printTicket As PrintTicket)

매개 변수

fixedDocumentSequence
FixedDocumentSequence

작성된 문서 집합입니다.

printTicket
PrintTicket

PrintTicket 문서 집합의 기본 인쇄 기본 설정을 나타내는 A입니다.

설명

클래스에는 XpsDocument 단수 이름이 XpsDocument 있지만 하나 FixedDocument 또는 여러 문서 집합일 수 있습니다. 이 메서드는 기존 집합에 FixedDocument 요소 집합 FixedDocument 또는 집합을 추가합니다.

이 메서드는 특정printTicket에 대해 지정된 PrintQueue 유효성을 검사하거나 수정하지 않습니다. 필요한 경우 메서드를 MergeAndValidatePrintTicket 사용하여 지정된 프린터에 대해 PrintTicket 유효한 특정 프린터를 만듭니 PrintQueue 다.

이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 Write(FixedDocumentSequence, PrintTicket)throw된 예외를 참조하세요.

적용 대상

WriteAsync(DocumentPaginator, PrintTicket, Object)

지정된 DocumentPaginator 콘텐츠에서 대상 PrintTicket 또는 XpsDocument에 대해 비동기적으로 페이지를 매긴 콘텐츠를 함께 PrintQueue 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::DocumentPaginator ^ documentPaginator, System::Printing::PrintTicket ^ printTicket, System::Object ^ userSuppliedState);
public override void WriteAsync(System.Windows.Documents.DocumentPaginator documentPaginator, System.Printing.PrintTicket printTicket, object userSuppliedState);
override this.WriteAsync : System.Windows.Documents.DocumentPaginator * System.Printing.PrintTicket * obj -> unit
Public Overrides Sub WriteAsync (documentPaginator As DocumentPaginator, printTicket As PrintTicket, userSuppliedState As Object)

매개 변수

documentPaginator
DocumentPaginator

페이지를 매기지 않은 원본 재질에 대한 포인터가 들어 있는 개체입니다. 에는 재질 페이지를 매기 위한 메서드도 포함되어 있습니다.

printTicket
PrintTicket

재질의 기본 인쇄 기본 설정을 나타내는 A PrintTicket 입니다.

userSuppliedState
Object

비동기 작업을 식별하고 연결할 사용자 지정 개체입니다.

설명

이 메서드는 특정printTicket에 대해 지정된 PrintQueue 유효성을 검사하거나 수정하지 않습니다. 필요한 경우 메서드를 MergeAndValidatePrintTicket 사용하여 지정된 프린터에 대해 PrintTicket 유효한 특정 프린터를 만듭니 PrintQueue 다.

적용 대상

WriteAsync(FixedDocumentSequence, Object)

대상 FixedDocumentSequence 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::FixedDocumentSequence ^ fixedDocumentSequence, System::Object ^ userSuppliedState);
public override void WriteAsync(System.Windows.Documents.FixedDocumentSequence fixedDocumentSequence, object userSuppliedState);
override this.WriteAsync : System.Windows.Documents.FixedDocumentSequence * obj -> unit
Public Overrides Sub WriteAsync (fixedDocumentSequence As FixedDocumentSequence, userSuppliedState As Object)

매개 변수

fixedDocumentSequence
FixedDocumentSequence

작성된 문서 집합입니다.

userSuppliedState
Object

비동기 작업을 식별하고 연결할 사용자 지정 개체입니다.

설명

클래스에는 XpsDocument 단수 이름이 XpsDocument 있지만 하나 FixedDocument 또는 여러 문서 집합일 수 있습니다. 이 메서드는 기존 집합에 FixedDocument 요소 집합 FixedDocument 또는 집합을 추가합니다.

적용 대상

WriteAsync(FixedDocumentSequence)

대상 FixedDocumentSequence 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::FixedDocumentSequence ^ fixedDocumentSequence);
public override void WriteAsync(System.Windows.Documents.FixedDocumentSequence fixedDocumentSequence);
override this.WriteAsync : System.Windows.Documents.FixedDocumentSequence -> unit
Public Overrides Sub WriteAsync (fixedDocumentSequence As FixedDocumentSequence)

매개 변수

fixedDocumentSequence
FixedDocumentSequence

작성된 문서 집합입니다.

예제

다음 예제에서는 이 메서드를 사용하여 XPS 문서에 쓰는 방법을 보여 줍니다.

private void SaveMultipleFixedContentDocumentsAsync(
             XpsDocumentWriter xpsdw, FixedDocumentSequence fds)
{
    _xpsdwActive = xpsdw;

    xpsdw.WritingCompleted +=
        new WritingCompletedEventHandler(AsyncSaveCompleted);

    xpsdw.WritingProgressChanged +=
        new WritingProgressChangedEventHandler(AsyncSavingProgress);

    // Write the FixedDocumentSequence as a
    // collection of documents asynchronously.
    xpsdw.WriteAsync(fds);
}
Private Sub SaveMultipleFixedContentDocumentsAsync(ByVal xpsdw As XpsDocumentWriter, ByVal fds As FixedDocumentSequence)
    _xpsdwActive = xpsdw

    AddHandler xpsdw.WritingCompleted, AddressOf AsyncSaveCompleted

    AddHandler xpsdw.WritingProgressChanged, AddressOf AsyncSavingProgress

    ' Write the FixedDocumentSequence as a
    ' collection of documents asynchronously.
    xpsdw.WriteAsync(fds)
End Sub

설명

클래스에는 XpsDocument 단수 이름이 XpsDocument 있지만 하나 FixedDocument 또는 여러 문서 집합일 수 있습니다. 이 메서드는 기존 집합에 FixedDocument 요소 집합 FixedDocument 또는 집합을 추가합니다.

이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 Write(FixedDocumentSequence)throw된 예외를 참조하세요.

적용 대상

WriteAsync(FixedDocument, Object)

대상 FixedDocument 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::FixedDocument ^ fixedDocument, System::Object ^ userSuppliedState);
public override void WriteAsync(System.Windows.Documents.FixedDocument fixedDocument, object userSuppliedState);
override this.WriteAsync : System.Windows.Documents.FixedDocument * obj -> unit
Public Overrides Sub WriteAsync (fixedDocument As FixedDocument, userSuppliedState As Object)

매개 변수

fixedDocument
FixedDocument

작성된 문서입니다.

userSuppliedState
Object

비동기 작업을 식별하고 연결할 사용자 지정 개체입니다.

설명

클래스에는 XpsDocument 단수 이름이 XpsDocument 있지만 하나 FixedDocument 또는 여러 문서 집합일 수 있습니다. 이 메서드는 집합에 FixedDocument 추가합니다.

적용 대상

WriteAsync(DocumentPaginator, PrintTicket)

지정된 DocumentPaginator 콘텐츠에서 대상 PrintTicket 또는 XpsDocument에 대해 비동기적으로 페이지를 매긴 콘텐츠를 함께 PrintQueue 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::DocumentPaginator ^ documentPaginator, System::Printing::PrintTicket ^ printTicket);
public override void WriteAsync(System.Windows.Documents.DocumentPaginator documentPaginator, System.Printing.PrintTicket printTicket);
override this.WriteAsync : System.Windows.Documents.DocumentPaginator * System.Printing.PrintTicket -> unit
Public Overrides Sub WriteAsync (documentPaginator As DocumentPaginator, printTicket As PrintTicket)

매개 변수

documentPaginator
DocumentPaginator

페이지를 매기지 않은 소스 재질에 대한 포인터를 포함하고 재질을 페이지를 매기 위한 메서드도 포함하는 개체입니다.

printTicket
PrintTicket

재질의 기본 인쇄 기본 설정을 나타내는 A PrintTicket 입니다.

설명

이 메서드는 특정printTicket에 대해 지정된 PrintQueue 유효성을 검사하거나 수정하지 않습니다. 필요한 경우 메서드를 MergeAndValidatePrintTicket 사용하여 지정된 프린터에 대해 PrintTicket 유효한 특정 프린터를 만듭니 PrintQueue 다.

이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 Write(DocumentPaginator, PrintTicket)throw된 예외를 참조하세요.

적용 대상

WriteAsync(DocumentPaginator, Object)

지정된 DocumentPaginator 대상 XpsDocument 또는 PrintQueue에 대해 비동기적으로 페이지를 매긴 콘텐츠를 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::DocumentPaginator ^ documentPaginator, System::Object ^ userSuppliedState);
public override void WriteAsync(System.Windows.Documents.DocumentPaginator documentPaginator, object userSuppliedState);
override this.WriteAsync : System.Windows.Documents.DocumentPaginator * obj -> unit
Public Overrides Sub WriteAsync (documentPaginator As DocumentPaginator, userSuppliedState As Object)

매개 변수

documentPaginator
DocumentPaginator

페이지를 매기지 않은 원본 재질에 대한 포인터가 들어 있는 개체입니다. 에는 재질 페이지를 매기 위한 메서드도 포함되어 있습니다.

userSuppliedState
Object

비동기 작업을 식별하고 연결할 사용자 지정 개체입니다.

적용 대상

WriteAsync(String, XpsDocumentNotificationLevel)

알림 옵션이 있는 지정된 XPS 문서를 대상 XpsDocument 또는 PrintQueue.에 비동기적으로 씁니다.

public:
 void WriteAsync(System::String ^ documentPath, System::Windows::Xps::XpsDocumentNotificationLevel notificationLevel);
public void WriteAsync(string documentPath, System.Windows.Xps.XpsDocumentNotificationLevel notificationLevel);
override this.WriteAsync : string * System.Windows.Xps.XpsDocumentNotificationLevel -> unit
Public Sub WriteAsync (documentPath As String, notificationLevel As XpsDocumentNotificationLevel)

매개 변수

documentPath
String

원본 문서의 경로입니다.

notificationLevel
XpsDocumentNotificationLevel

알림이 사용되는지 여부를 나타내는 표시입니다.

설명

사용하지 않도록 설정하면 notificationLevel 직렬화된 XPS 문서를 대상 XpsDocumentWriter 에 복사하거나 XpsDocument 해당 문서를 만듭니다PrintQueue.XpsDocumentWriter 사용하도록 설정 notificationLevel 하면 먼저 문서를 역직렬화한 다음 다시 역직렬화한 다음 각 페이지가 출력될 때 XpsDocumentWriter 진행률 알림을 사용하여 대상에 씁니다.

클래스에는 XpsDocument 단수 이름이 XpsDocument 있지만 하나 FixedDocument 또는 여러 문서 집합일 수 있습니다. 이 메서드는 원본의 FixedDocument 요소를 대상 FixedDocument 또는 XpsDocument요소의 PrintQueue 시퀀스에 추가합니다.

notificationLevel지정하면 ReceiveNotificationEnabled 문서가 직렬화될 때만 알림이 생성되고 인쇄되지 않습니다. 알림을 받으려면 문서를 다시 초기화해야 합니다. 문서가 다시 정형화되면 Package에서 보존할 필요가 없는 모든 콘텐츠가 제거됩니다. 또한 다시 공간화는 확장된 XPS 콘텐츠를 포함하여 태그에서 FixedPage 모든 확장을 제거합니다.

지정한 notificationLevel 경우 ReceiveNotificationDisabled 문서가 다시 초기화되지 않고 인쇄되는 경우에도 확장된 콘텐츠가 유지됩니다.

디자인상 이 WriteAsync 메서드는 이벤트를 호출 WritingPrintTicketRequired 하지 않습니다.

이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 Write(String, XpsDocumentNotificationLevel)throw된 예외를 참조하세요.

적용 대상

WriteAsync(Visual)

대상 Visual 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Media::Visual ^ visual);
public override void WriteAsync(System.Windows.Media.Visual visual);
override this.WriteAsync : System.Windows.Media.Visual -> unit
Public Overrides Sub WriteAsync (visual As Visual)

매개 변수

visual
Visual

Visual 기록된 값입니다.

예제

다음 예제에서는 이 메서드를 사용하여 XPS 문서에 쓰는 Visual 방법을 보여 줍니다.

private void SaveVisualAsync(XpsDocumentWriter xpsdw, Visual v)
{
    _xpsdwActive = xpsdw;

    xpsdw.WritingCompleted +=
        new WritingCompletedEventHandler(AsyncSaveCompleted);

    xpsdw.WriteAsync(v);    // Write visual to single page.
}
Private Sub SaveVisualAsync(ByVal xpsdw As XpsDocumentWriter, ByVal v As Visual)
    _xpsdwActive = xpsdw

    AddHandler xpsdw.WritingCompleted, AddressOf AsyncSaveCompleted

    xpsdw.WriteAsync(v) ' Write visual to single page.
End Sub

설명

일괄 처리를 작성하려면 .를 Visual사용합니다 VisualsToXpsDocument.

이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 Write(Visual)throw된 예외를 참조하세요.

적용 대상

WriteAsync(FixedPage)

대상 FixedPage 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::FixedPage ^ fixedPage);
public override void WriteAsync(System.Windows.Documents.FixedPage fixedPage);
override this.WriteAsync : System.Windows.Documents.FixedPage -> unit
Public Overrides Sub WriteAsync (fixedPage As FixedPage)

매개 변수

fixedPage
FixedPage

작성된 페이지입니다.

설명

이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 Write(FixedPage)throw된 예외를 참조하세요.

적용 대상

WriteAsync(FixedDocument)

대상 FixedDocument 또는 XpsDocument에 지정된 PrintQueue 값을 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::FixedDocument ^ fixedDocument);
public override void WriteAsync(System.Windows.Documents.FixedDocument fixedDocument);
override this.WriteAsync : System.Windows.Documents.FixedDocument -> unit
Public Overrides Sub WriteAsync (fixedDocument As FixedDocument)

매개 변수

fixedDocument
FixedDocument

작성된 문서입니다.

예제

다음 예제에서는 이 메서드를 사용하여 XPS 문서에 쓰는 방법을 보여 줍니다.

private void SaveSingleFixedContentDocumentAsync(
             XpsDocumentWriter xpsdw, FixedDocument fd)
{
    _xpsdwActive = xpsdw;

    xpsdw.WritingCompleted +=
        new WritingCompletedEventHandler(AsyncSaveCompleted);

    // Write the FixedDocument as a document.
    xpsdw.WriteAsync(fd);
}
Private Sub SaveSingleFixedContentDocumentAsync(ByVal xpsdw As XpsDocumentWriter, ByVal fd As FixedDocument)
    _xpsdwActive = xpsdw

    AddHandler xpsdw.WritingCompleted, AddressOf AsyncSaveCompleted

    ' Write the FixedDocument as a document.
    xpsdw.WriteAsync(fd)
End Sub

설명

클래스에는 XpsDocument 단수 이름이 XpsDocument 있지만 하나 FixedDocument 또는 여러 문서 집합일 수 있습니다. 이 메서드는 집합에 FixedDocument 추가합니다.

이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 Write(FixedDocument)throw된 예외를 참조하세요.

적용 대상

WriteAsync(DocumentPaginator)

지정된 DocumentPaginator 대상 XpsDocument 또는 PrintQueue에 대해 비동기적으로 페이지를 매긴 콘텐츠를 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::DocumentPaginator ^ documentPaginator);
public override void WriteAsync(System.Windows.Documents.DocumentPaginator documentPaginator);
override this.WriteAsync : System.Windows.Documents.DocumentPaginator -> unit
Public Overrides Sub WriteAsync (documentPaginator As DocumentPaginator)

매개 변수

documentPaginator
DocumentPaginator

페이지를 매기지 않은 소스 재질에 대한 포인터를 포함하고 재질을 페이지를 매기 위한 메서드도 포함하는 개체입니다.

예제

다음 예제에서는 이 메서드를 사용하여 XPS 문서에 쓰는 방법을 보여 줍니다.

private void SaveSingleFlowContentDocumentAsync(
             XpsDocumentWriter xpsdw, DocumentPaginator idp)
{
    _xpsdwActive = xpsdw;

    xpsdw.WritingCompleted +=
        new WritingCompletedEventHandler(AsyncSaveCompleted);

    // Write the IDP as a document.
    xpsdw.WriteAsync(idp);
}
Private Sub SaveSingleFlowContentDocumentAsync(ByVal xpsdw As XpsDocumentWriter, ByVal idp As DocumentPaginator)
    _xpsdwActive = xpsdw

    AddHandler xpsdw.WritingCompleted, AddressOf AsyncSaveCompleted

    ' Write the IDP as a document.
    xpsdw.WriteAsync(idp)
End Sub

설명

이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 Write(DocumentPaginator)throw된 예외를 참조하세요.

적용 대상

WriteAsync(String)

지정된 XPS 문서를 대상 XpsDocument 또는 PrintQueue에 비동기적으로 씁니다.

public:
 void WriteAsync(System::String ^ documentPath);
public void WriteAsync(string documentPath);
override this.WriteAsync : string -> unit
Public Sub WriteAsync (documentPath As String)

매개 변수

documentPath
String

원본 문서의 경로입니다.

설명

클래스에는 XpsDocument 단수 이름이 XpsDocument 있지만 하나 FixedDocument 또는 여러 문서 집합일 수 있습니다. 이 메서드는 원본의 FixedDocument 요소를 대상 FixedDocument 또는 XpsDocumentPrintQueue요소 집합에 추가합니다.

WriteAsync 메서드는 XML Package에서 보존할 필요가 없는 모든 콘텐츠를 제거하는 지정된 XPS 문서를 다시 초기화합니다. 또한 다시 공간화는 확장된 XPS 콘텐츠를 포함하여 태그에서 FixedPage 모든 확장을 제거합니다.

기본적으로 이 WriteAsync 메서드는 이벤트를 호출 WritingPrintTicketRequired 하지 않습니다.

이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 Write(String)throw된 예외를 참조하세요.

적용 대상

WriteAsync(FixedDocument, PrintTicket)

대상 FixedDocument 또는 PrintTicket에 대해 지정된 XpsDocument 값을 함께 PrintQueue 비동기적으로 씁니다.

public:
 override void WriteAsync(System::Windows::Documents::FixedDocument ^ fixedDocument, System::Printing::PrintTicket ^ printTicket);
public override void WriteAsync(System.Windows.Documents.FixedDocument fixedDocument, System.Printing.PrintTicket printTicket);
override this.WriteAsync : System.Windows.Documents.FixedDocument * System.Printing.PrintTicket -> unit
Public Overrides Sub WriteAsync (fixedDocument As FixedDocument, printTicket As PrintTicket)

매개 변수

fixedDocument
FixedDocument

작성된 문서입니다.

printTicket
PrintTicket

PrintTicket 문서의 기본 인쇄 기본 설정을 나타내는 A입니다.

설명

클래스에는 XpsDocument 단수 이름이 XpsDocument 있지만 하나 FixedDocument 또는 여러 문서 집합일 수 있습니다. 이 메서드는 집합에 FixedDocument 추가합니다.

이 메서드는 특정printTicket에 대해 지정된 PrintQueue 유효성을 검사하거나 수정하지 않습니다. 필요한 경우 메서드를 MergeAndValidatePrintTicket 사용하여 지정된 프린터에 대해 PrintTicket 유효한 특정 프린터를 만듭니 PrintQueue 다.

이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 Write(FixedDocument, PrintTicket)throw된 예외를 참조하세요.

적용 대상