[]
        
(Showing Draft Content)

C1.Win.C1Preview.C1PreviewPane.Print

Print Method

Print()

Shows the standard print dialog, allowing the user to print the currently loaded document.

Declaration
public bool Print()
Returns
Type Description
bool

True if the user pressed OK in the dialog, false if the user cancelled the dialog.

Print(string, int[])

Shows the standard print dialog, allowing the user to print the currently loaded document.

Declaration
public bool Print(string printerName, int[] selectedPageNumbers)
Parameters
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.

Returns
Type Description
bool

True if the user pressed OK in the dialog, false if the user cancelled the dialog.

Remarks

If an exception occurs, the error message is shown, and false is returned.