Export (0) Print
Expand All

_Worksheet.PrintOut method

Prints the object.

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

void PrintOut(
	Object From,
	Object To,
	Object Copies,
	Object Preview,
	Object ActivePrinter,
	Object PrintToFile,
	Object Collate,
	Object PrToFileName
)

Parameters

From
Type: System.Object

Optional Object. The number of the page at which to start printing. If this argument is omitted, printing starts at the beginning.

To
Type: System.Object

Optional Object. The number of the last page to print. If this argument is omitted, printing ends with the last page.

Copies
Type: System.Object

Optional Object. The number of copies to print. If this argument is omitted, one copy is printed.

Preview
Type: System.Object

Optional Object. True to have Microsoft Excel invoke print preview before printing the object. False (or omitted) to print the object immediately.

ActivePrinter
Type: System.Object

Optional Object. Sets the name of the active printer.

PrintToFile
Type: System.Object

Optional Object. True to print to a file. If PrToFileName is not specified, Microsoft Excel prompts the user to enter the name of the output file.

Collate
Type: System.Object

Optional Object. True to collate multiple copies.

PrToFileName
Type: System.Object

Optional Object. If PrintToFile is set to True, this argument specifies the name of the file you want to print to.

"Pages" in the descriptions of From and To refers to printed pages, not overall pages in the sheet or workbook.

Show:
© 2015 Microsoft