'Declaration Public Overloads Function ExportToXps( _ ByVal stream As Stream, _ ByVal pageSize As Size, _ ByVal imageableArea As Rect, _ ByVal pageRange As PageRange, _ ByVal compressionOption As CompressionOption, _ ByVal progressCallback As EventHandler(Of ProgressEventArgs), _ ByVal showProgressWindow As Boolean, _ ByVal printPreview As Boolean _ ) As Boolean
'Usage Dim instance As DataGridControl Dim stream As Stream Dim pageSize As Size Dim imageableArea As Rect Dim pageRange As PageRange Dim compressionOption As CompressionOption Dim progressCallback As EventHandler(Of ProgressEventArgs) Dim showProgressWindow As Boolean Dim printPreview As Boolean Dim value As Boolean value = instance.ExportToXps(stream, pageSize, imageableArea, pageRange, compressionOption, progressCallback, showProgressWindow, printPreview)
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.
- imageableArea
- A Rect structure that represents the area of the page that can be printed.
- pageRange
- A PageRange structure that represents the range of pages to process.
- compressionOption
- A CompressionOption value that indicates the compression level to use.
- progressCallback
- The callback to invoke during the process.
- showProgressWindow
- true if the progress window is displayed; false otherwise.
- printPreview
- true if the print preview window is displayed; false otherwise.