[]
Shows the standard print dialog, allowing the user to print the currently loaded document.
public bool Print()
Type | Description |
---|---|
bool | True if the user pressed OK in the dialog, false if the user cancelled the dialog. |
Shows the standard print dialog, allowing the user to print the currently loaded document.
public bool Print(string printerName, int[] selectedPageNumbers)
Type | Name | Description |
---|---|---|
string | printerName | The name of the printer that should be initially selected in the dialog. |
int[] | selectedPageNumbers | The list of selected page numbers. If this parameter is not null, selection option is enabled in the dialog. |
Type | Description |
---|---|
bool | True if the user pressed OK in the dialog, false if the user cancelled the dialog. |
If an exception occurs, the error message is shown, and false is returned.