Xceed DataGrid for WPF v7.2 Documentation
Print(String,Boolean,Boolean) Method


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridControl Class > Print Method : Print(String,Boolean,Boolean) Method
A string representing the title that will be used as the print-job name.
true if the end user can specify the range of pages to print; false if all pages will be printed.
true if the progress window is displayed; false otherwise.
Displays a Print dialog that allows the grid to be printed specifying the title that will be used as the print-job name and indicating whether the end user can specify the range of pages to print, as well as indicating whether the progress window is displayed.
Syntax
'Declaration
 
Public Overloads Function Print( _
   ByVal documentTitle As String, _
   ByVal userPageRangeEnabled As Boolean, _
   ByVal showProgressWindow As Boolean _
) As Boolean
'Usage
 
Dim instance As DataGridControl
Dim documentTitle As String
Dim userPageRangeEnabled As Boolean
Dim showProgressWindow As Boolean
Dim value As Boolean
 
value = instance.Print(documentTitle, userPageRangeEnabled, showProgressWindow)

Parameters

documentTitle
A string representing the title that will be used as the print-job name.
userPageRangeEnabled
true if the end user can specify the range of pages to print; false if all pages will be printed.
showProgressWindow
true if the progress window is displayed; false otherwise.
Remarks

The appearance of a grid when it is printed or exported is determined by the PrintView property.

If running under XBAP with FullTrust permissions, the printing process will be asynchronous. If FullTrust permission are not used, the process will be synchronous and will cause the application to freeze until the process has completed.

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

Reference

DataGridControl Class
DataGridControl Members
Overload List