Compartir a través de


_Presentation.PrintOut Method

Prints the specified presentation.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Sub PrintOut ( _
    From As Integer, _
    To As Integer, _
    PrintToFile As String, _
    Copies As Integer, _
    Collate As MsoTriState _
)
'Usage
Dim instance As _Presentation
Dim From As Integer
Dim To As Integer
Dim PrintToFile As String
Dim Copies As Integer
Dim Collate As MsoTriState

instance.PrintOut(From, To, PrintToFile, _
    Copies, Collate)
void PrintOut(
    int From,
    int To,
    string PrintToFile,
    int Copies,
    MsoTriState Collate
)

Parameters

  • From
    Type: System.Int32
    The number of the first page to be printed. If this argument is omitted, printing starts at the beginning of the presentation. Specifying the To and From arguments sets the contents of the PrintRanges object and sets the value of the RangeType property for the presentation.
  • To
    Type: System.Int32
    The number of the last page to be printed. If this argument is omitted, printing continues to the end of the presentation. Specifying the To and From arguments sets the contents of the PrintRanges object and sets the value of the RangeType property for the presentation.
  • PrintToFile
    Type: System.String
    The name of the file to print to. If you specify this argument, the file is printed to a file rather than sent to a printer. If this argument is omitted, the file is sent to a printer.
  • Copies
    Type: System.Int32
    The number of copies to be printed. If this argument is omitted, only one copy is printed. Specifying this argument sets the value of the NumberOfCopies property.

Remarks

The Collate parameter value can be one of these MsoTriState constants.

Constant

Description

msoFalse

Prints all copies of one page before printing the first copy of the next page.

msoTrue

Prints a complete copy of the presentation before the first page of the next copy is printed.

See Also

Reference

_Presentation Interface

_Presentation Members

Microsoft.Office.Interop.PowerPoint Namespace