Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / DataGridControl Class / ExportToXps Method / ExportToXps(Stream,Size,Int32) Method
The Stream to which the grid will be exported as an XPS document.
A Size structure that indicates the size of the pages, including the printer margins.
A value indicating the size of the preview.


In This Topic
    ExportToXps(Stream,Size,Int32) Method
    In This Topic
    Exports the grid as an XPS document to the specified stream using the provided page and preview sizes.
    Syntax
    'Declaration
     
    Public Overloads Function ExportToXps( _
       ByVal stream As Stream, _
       ByVal pageSize As Size, _
       ByVal previewSize As Integer _
    ) As Boolean
    'Usage
     
    Dim instance As DataGridControl
    Dim stream As Stream
    Dim pageSize As Size
    Dim previewSize As Integer
    Dim value As Boolean
     
    value = instance.ExportToXps(stream, pageSize, previewSize)
    public bool ExportToXps( 
       Stream stream,
       Size pageSize,
       int previewSize
    )

    Parameters

    stream
    The Stream to which the grid will be exported as an XPS document.
    pageSize
    A Size structure that indicates the size of the pages, including the printer margins.
    previewSize
    A value indicating the size of the preview.
    Requirements

    Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also