Document.Print
Description:
Prints a set of views with a specified view template and default print settings.
Prints a set of views with a specified 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.
Overloads (4):
-
viewsThe set of views which need to be printed.
-
viewTemplateThe view template which apply to the set of views.
-
BooleanuseCurrentPrintSettingsIf true, print the view with the current print setting, otherwise with the print setting of the document of the view.
-
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.
-
Thrown when the view set to be printed isnullNothingnullptra null reference (Nothingin Visual Basic).
-
Thrown when the view set contains anullNothingnullptra null reference (Nothingin Visual Basic)element.
-
Thrown when at least one view from the view set could not be printed.
-
Thrown when print is cancelled by event handler.