Reports for WPF | ComponentOne
Getting Started with Reports for WPF / Exporting to XML Paper Specification (XPS)
In This Topic
    Exporting to XML Paper Specification (XPS)
    In This Topic

    C1PrintDocument can now be exported to the new XML Paper Specification (XPS). As with other export formats supported by C1PrintDocument, there are several ways to export the document to XPS. The easiest way would be to use any of the Export methods' overloads, for example:

    Visual Basic
    Copy Code
    Dim doc As New C1PrintDocument()
    doc.Export("MyDocument.xps")
    
    C#
    Copy Code
    C1PrintDocument doc = new C1PrintDocument();
    doc.Export("MyDocument.xps");
    

     

    The Export method can be invoked on the C1PrintDocument exposed by the C1Report component:

    Visual Basic
    Copy Code
    Dim rep As New C1Report()
    rep.Load(…)
    rep.C1Document.Export("MyReport.xps")
    
    C#
    Copy Code
    C1Report rep = new C1Report();
    rep.Load(…);
    rep.C1Document.Export("MyReport.xps");
    
    See Also