Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

_Document.PrintOut Method

Prints all or part of the specified document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

'Usage
Dim Background As Object
Dim Append As Object
Dim Range As Object
Dim OutputFileName As Object
Dim From As Object
Dim To As Object
Dim Item As Object
Dim Copies As Object
Dim Pages As Object
Dim PageType As Object
Dim PrintToFile As Object
Dim Collate As Object
Dim ActivePrinterMacGX As Object
Dim ManualDuplexPrint As Object
Dim PrintZoomColumn As Object
Dim PrintZoomRow As Object
Dim PrintZoomPaperWidth As Object
Dim PrintZoomPaperHeight As Object
Dim _Document1 As _Document
_Document1.PrintOut(Background, Append, Range, OutputFileName, From, To, Item, Copies, Pages, PageType, PrintToFile, Collate, ActivePrinterMacGX, ManualDuplexPrint, PrintZoomColumn, PrintZoomRow, PrintZoomPaperWidth, PrintZoomPaperHeight)

void PrintOut(
	[In, Optional] ref object Background, 
	[In, Optional] ref object Append, 
	[In, Optional] ref object Range, 
	[In, Optional] ref object OutputFileName, 
	[In, Optional] ref object From, 
	[In, Optional] ref object To, 
	[In, Optional] ref object Item, 
	[In, Optional] ref object Copies, 
	[In, Optional] ref object Pages, 
	[In, Optional] ref object PageType, 
	[In, Optional] ref object PrintToFile, 
	[In, Optional] ref object Collate, 
	[In, Optional] ref object ActivePrinterMacGX, 
	[In, Optional] ref object ManualDuplexPrint, 
	[In, Optional] ref object PrintZoomColumn, 
	[In, Optional] ref object PrintZoomRow, 
	[In, Optional] ref object PrintZoomPaperWidth, 
	[In, Optional] ref object PrintZoomPaperHeight
);
public void PrintOut(
	/*in*/System.Object Background, 
	/*in*/System.Object Append, 
	/*in*/System.Object Range, 
	/*in*/System.Object OutputFileName, 
	/*in*/System.Object From, 
	/*in*/System.Object To, 
	/*in*/System.Object Item, 
	/*in*/System.Object Copies, 
	/*in*/System.Object Pages, 
	/*in*/System.Object PageType, 
	/*in*/System.Object PrintToFile, 
	/*in*/System.Object Collate, 
	/*in*/System.Object ActivePrinterMacGX, 
	/*in*/System.Object ManualDuplexPrint, 
	/*in*/System.Object PrintZoomColumn, 
	/*in*/System.Object PrintZoomRow, 
	/*in*/System.Object PrintZoomPaperWidth, 
	/*in*/System.Object PrintZoomPaperHeight
);
function PrintOut(
	 Background : Object, 
	 Append : Object, 
	 Range : Object, 
	 OutputFileName : Object, 
	 From : Object, 
	 To : Object, 
	 Item : Object, 
	 Copies : Object, 
	 Pages : Object, 
	 PageType : Object, 
	 PrintToFile : Object, 
	 Collate : Object, 
	 ActivePrinterMacGX : Object, 
	 ManualDuplexPrint : Object, 
	 PrintZoomColumn : Object, 
	 PrintZoomRow : Object, 
	 PrintZoomPaperWidth : Object, 
	 PrintZoomPaperHeight : Object
);

Parameters

Background

Optional Object. Set to True to have the macro continue while Microsoft Word prints the document.

Append

Optional Object. Set to True to append the specified document to the file name specified by the OutputFileName argument. False to overwrite the contents of OutputFileName.

Range

Optional Object. The page range. Can be any WdPrintOutRange constant.

OutputFileName

Optional Object. If PrintToFile is True, this argument specifies the path and file name of the output file.

From

Optional Object. The starting page number when Range is set to wdPrintFromTo.

To

Optional Object. The ending page number when Range is set to wdPrintFromTo.

Item

Optional Object. The item to be printed. Can be any WdPrintOutItem constant.

Copies

Optional Object. The number of copies to be printed.

Pages

Optional Object. The page numbers and page ranges to be printed, separated by commas. For example, "2, 6-10" prints page 2 and pages 6 through 10.

PageType

Optional Object. The type of pages to be printed. Can be any WdPrintOutPages constant.

PrintToFile

Optional Object. True to send printer instructions to a file. Make sure to specify a file name with OutputFileName.

Collate

Optional Object. When printing multiple copies of a document, True to print all pages of the document before printing the next copy.

ActivePrinterMacGX

Optional Object. This argument is available only in Microsoft Office Macintosh Edition. For additional information about this argument, consult the language reference Help included with Microsoft Office Macintosh Edition.

ManualDuplexPrint

Optional Object. True to print a two-sided document on a printer without a duplex printing kit. If this argument is True, the PrintBackground and PrintReverse properties are ignored. Use the PrintOddPagesInAscendingOrder and PrintEvenPagesInAscendingOrder properties to control the output during manual duplex printing. This argument may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

PrintZoomColumn

Optional Object. The number of pages you want Word to fit horizontally on one page. Can be 1, 2, 3, or 4. Use with the PrintZoomRow argument to print multiple pages on a single sheet.

PrintZoomRow

Optional Object. The number of pages you want Word to fit vertically on one page. Can be 1, 2, or 4. Use with the PrintZoomColumn argument to print multiple pages on a single sheet.

PrintZoomPaperWidth

Optional Object. The width to which you want Word to scale printed pages, in twips (20 twips = 1 point; 72 points = 1 inch).

PrintZoomPaperHeight

Optional Object. The height to which you want Word to scale printed pages, in twips (20 twips = 1 point; 72 points = 1 inch).

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Anzeigen: