A string representing the fully-qualified file name of the XPS document to which the grid will be exported. If the file exists, it will be overwritten.
A Size structure that indicates the size of the pages, including the printer margins.
A Rect structure that represents the area of the page that can be printed.
true if the progress window is displayed; false otherwise.
In This Topic
ExportToXps(String,Size,Rect,Boolean) Method
In This Topic
Exports the grid to an XPS document that has the specified file name and using the provided page size and imageable area, as well as indicating whether the progress window is displayed.
'Usage
Dim instance As DataGridControl
Dim fileName As String
Dim pageSize As Size
Dim imageableArea As Rect
Dim showProgressWindow As Boolean
Dim value As Boolean
value = instance.ExportToXps(fileName, pageSize, imageableArea, showProgressWindow)
A string representing the fully-qualified file name of the XPS document to which the grid will be exported. If the file exists, it will be overwritten.
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.
showProgressWindow
true if the progress window is displayed; false otherwise.
Can be thrown in XBAP if FullTrust permissions are not used.
Remarks
The appearance of a grid when it is printed or exported is determined by the PrintView property.
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