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




The PrintPro workspace to use.
An integer value which represents the minimum available page range the user is allowed to select from in the print dialog.
An integer value which represents the maximum available page range the user is allowed to select from in the print dialog.
An integer which represents the default from page set in the page range portion of the setup dialog.
An integer which represents the default to page set in the page range portion of the setup dialog.
The available range to select from in the select printer dialog
Selects a printer from the PrintPro workspace using the windows select printer dialog and setting the minimum and maximum page range along with the default from and to values the user is allowed to choose from.
Syntax
'Declaration
 
Public Overloads Shared Function SelectPrinter( _
   ByVal printProWorkspace As PrintPro, _
   ByVal minPage As Integer, _
   ByVal maxPage As Integer, _
   ByVal fromPage As Integer, _
   ByVal toPage As Integer, _
   ByVal availableRange As PrintRangeAvailable _
) As Printer
'Usage
 
Dim printProWorkspace As PrintPro
Dim minPage As Integer
Dim maxPage As Integer
Dim fromPage As Integer
Dim toPage As Integer
Dim availableRange As PrintRangeAvailable
Dim value As Printer
 
value = Printer.SelectPrinter(printProWorkspace, minPage, maxPage, fromPage, toPage, availableRange)
public static Printer SelectPrinter( 
   PrintPro printProWorkspace,
   int minPage,
   int maxPage,
   int fromPage,
   int toPage,
   PrintRangeAvailable availableRange
)
public: static Printer* SelectPrinter( 
   PrintPro* printProWorkspace,
   int minPage,
   int maxPage,
   int fromPage,
   int toPage,
   PrintRangeAvailable availableRange
) 
public:
static Printer^ SelectPrinter( 
   PrintPro^ printProWorkspace,
   int minPage,
   int maxPage,
   int fromPage,
   int toPage,
   PrintRangeAvailable availableRange
) 

Parameters

printProWorkspace
The PrintPro workspace to use.
minPage
An integer value which represents the minimum available page range the user is allowed to select from in the print dialog.
maxPage
An integer value which represents the maximum available page range the user is allowed to select from in the print dialog.
fromPage
An integer which represents the default from page set in the page range portion of the setup dialog.
toPage
An integer which represents the default to page set in the page range portion of the setup dialog.
availableRange
The available range to select from in the select printer dialog

Return Value

The Printer that was selected.
Remarks

The dialog shown will have the ranges available for selection that are passed with a default selection of pages if that selection is available. If pages is not in the available selection, another constructor is likely to be more appropriate.

See Also

Reference

Printer Class
Printer Members
Overload List

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback