Document.Print(ViewSet, Boolean)
Method
Description:
Prints a set of views with default view template and default print settings.
Prints a set of views with default view template and default print settings.
Remarks:
If one view in the set can not be printed successfully then an exception will be thrown.
If one view in the set can not be printed successfully then an exception will be thrown.
Parameters
Parameter | Type | Description |
---|---|---|
views | ViewSet | The set of views which need to be printed. |
useCurrentPrintSettings | Boolean | If true, print the view with the current print setting, otherwise with the print setting of the document of the view. |
Return Value
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when printing is not allowed in the current application mode. Or when at least one view from the view set is not a printable view. |
ArgumentNullException | Thrown when the view set to be printed is. |
ArgumentException | Thrown when the view set contains aelement. |
ApplicationException | Thrown when at least one view from the view set could not be printed. |
OperationCanceledException | Thrown when print is cancelled by event handler. |