This documentation is archived and is not being maintained.

Worksheet.PrintOutEx Method (Object, Object, Object, Object, Object, Object, Object, Object, Object)


Prints the worksheet.

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

void PrintOutEx(
	object From,
	object To,
	object Copies,
	object Preview,
	object ActivePrinter,
	object PrintToFile,
	object Collate,
	object PrToFileName,
	object IgnorePrintAreas


Type: System.Object

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

Type: System.Object

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

Type: System.Object

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

Type: System.Object

true to have Microsoft Office Excel invoke print preview before printing the object. false to print the object immediately.

Type: System.Object

Sets the name of the active printer.

Type: System.Object

true to print to a file. If PrToFileName is not specified, Excel prompts the user to enter the name of the output file.

Type: System.Object

true to collate multiple copies.

Type: System.Object

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

Type: System.Object

true to ignore print areas and print the entire workbook; otherwise, false.

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

For information on optional parameters, see Optional Parameters in Office Solutions.

Return to top