Accusoft.PrintPro8.Net
SelectPrinter(PrintPro,Boolean,Int32,Int32) Method




A PrintPro workspace.
A boolean value which determines whether or not to show the select printer dialog
An integer value which represents if ShowDialog is true, this is the minimum available page range the user is allowed to select from in the print dialog. If ShowDialog is false, this is the starting page number for the printer and subsequent print jobs with it.
If ShowDialog is true, this is the maximum available page range the user is allowed to select from in the print dialog. If ShowDialog is false, this is the ending page number for the printer and subsequent print jobs with it.
Selects a printer from the PrintPro workspace using the windows select printer dialog and setting the minimum and maximum page range the user is allowed to choose from if ShowDialog is true.
Syntax
'Declaration
 
Public Overloads Shared Function SelectPrinter( _
   ByVal printProWorkspace As PrintPro, _
   ByVal showDialog As Boolean, _
   ByVal minPage As Integer, _
   ByVal maxPage As Integer _
) As Printer
'Usage
 
Dim printProWorkspace As PrintPro
Dim showDialog As Boolean
Dim minPage As Integer
Dim maxPage As Integer
Dim value As Printer
 
value = Printer.SelectPrinter(printProWorkspace, showDialog, minPage, maxPage)
public static Printer SelectPrinter( 
   PrintPro printProWorkspace,
   bool showDialog,
   int minPage,
   int maxPage
)
public: static Printer* SelectPrinter( 
   PrintPro* printProWorkspace,
   bool showDialog,
   int minPage,
   int maxPage
) 
public:
static Printer^ SelectPrinter( 
   PrintPro^ printProWorkspace,
   bool showDialog,
   int minPage,
   int maxPage
) 

Parameters

printProWorkspace
A PrintPro workspace.
showDialog
A boolean value which determines whether or not to show the select printer dialog
minPage
An integer value which represents if ShowDialog is true, this is the minimum available page range the user is allowed to select from in the print dialog. If ShowDialog is false, this is the starting page number for the printer and subsequent print jobs with it.
maxPage
If ShowDialog is true, this is the maximum available page range the user is allowed to select from in the print dialog. If ShowDialog is false, this is the ending page number for the printer and subsequent print jobs with it.

Return Value

The printer that was selected
Remarks

Note:If ShowDialog is false, MinPage and MaxPage are used for the print from and print to range. The dialog if shown has pages as the default range selection.

See Also

Reference

Printer Class
Printer Members
Overload List

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback