PrintOut [PlotDocument]

PrintOut sends the document to the current printer. Returns a Boolean. It returns 'True', if printing is successful, otherwise, returns 'False'.

Syntax

object.PrintOut( Method, SelectionOnly, NumCopies, Collate, xOverlap, yOverlap, Scale )

Parameter

Type

Required/

Optional

Default

Description

Method

Variant

Optional

 

This specifies the print methods -- truncate, fit to page, or tile; the SrfPrintMethod enumeration can be used for this parameter.

SelectionOnly

Variant

Optional

 

This parameter specifies whether only selected objects should be printed.

NumCopies

Variant

Optional

 

This specifies the number of copies to print.

Collate

Variant

Optional

 

This specifies whether to collate copies.

xOverlap

Variant

Optional

 

This provides the horizontal overlap on each page when using the tile Method.

yOverlap

Variant

Optional

 

This provides the vertical overlap on each page when using the tile Method.

Scale

Variant

Optional

 

This provides the size to print objects on the page, used with the truncate and tile Methods.

Example 1

This example demonstrates how to print two copies of a plot document.

Plot.PrintOut(NumCopies:=2)

Example 2

This script displays all the methods and properties in the PlotDocument object.

Used by: PlotDocument object