PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.6.2 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / GetXpsC1Doc Method

In This Topic
    GetXpsC1Doc Method
    In This Topic
    Gets the C1.C1Preview.Export.Xps.XpsC1Doc object representing the current document. That object can be used to access the underlying System.Windows.Xps.Packaging.XpsDocument, which in turn can provide the System.Windows.Documents.FixedDocumentSequence (via the call to GetFixedDocumentSequence()) that can be assigned to the Document property of a document viewer.

    Please note that to avoid memory leaks, the XpsC1Doc object returned by this method should be disposed when you're finished using it and/or the XpsDocument it provides.

    Syntax
    'Declaration
     
    Public Function GetXpsC1Doc() As XpsC1Doc
    public XpsC1Doc GetXpsC1Doc()

    Return Value

    The C1.C1Preview.Export.Xps.XpsC1Doc object representing the current document.
    See Also