'Declaration Public Overloads Function ShowPrintPreviewWindow( _ ByVal documentTitle As String, _ ByVal userPageRangeEnabled As Boolean, _ ByVal progressCallback As EventHandler(Of ProgressEventArgs), _ ByVal showProgressWindow As Boolean, _ ByVal windowSize As Size, _ ByVal ticket As PrintTicket _ ) As Boolean
'Usage Dim instance As DataGridControl Dim documentTitle As String Dim userPageRangeEnabled As Boolean Dim progressCallback As EventHandler(Of ProgressEventArgs) Dim showProgressWindow As Boolean Dim windowSize As Size Dim ticket As PrintTicket Dim value As Boolean value = instance.ShowPrintPreviewWindow(documentTitle, userPageRangeEnabled, progressCallback, showProgressWindow, windowSize, ticket)
public bool ShowPrintPreviewWindow( string documentTitle, bool userPageRangeEnabled, EventHandler<ProgressEventArgs> progressCallback, bool showProgressWindow, Size windowSize, PrintTicket ticket )
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.
- progressCallback
- The callback that will handle the PrintProgression event.
- showProgressWindow
- true if the progress window is displayed; false otherwise.
- windowSize
- A Size structure indicating the size of the window.
- ticket
- A PrintTicket to indicate a set of print options to use.