Hide Table of Contents
PrintOut2 Method (IModelDocExtension)

Obsolete. Superseded by IModelDocExtension::PrintOut3.

.NET Syntax

Visual Basic (Declaration) 
Sub PrintOut2( _
   ByVal PageArray As System.Object, _
   ByVal Copies As System.Integer, _
   ByVal Collate As System.Boolean, _
   ByVal Printer As System.String, _
   ByVal PrintFileName As System.String _
Visual Basic (Usage) 
Dim instance As IModelDocExtension
Dim PageArray As System.Object
Dim Copies As System.Integer
Dim Collate As System.Boolean
Dim Printer As System.String
Dim PrintFileName As System.String
instance.PrintOut2(PageArray, Copies, Collate, Printer, PrintFileName)
void PrintOut2( 
   System.object PageArray,
   System.int Copies,
   System.bool Collate,
   System.string Printer,
   System.string PrintFileName
void PrintOut2( 
&   System.Object^ PageArray,
&   System.int Copies,
&   System.bool Collate,
&   System.String^ Printer,
&   System.String^ PrintFileName


Range of pages to print (see Remarks)
Number of copies to print
True to collate copies, false to not
Name of the printer queue (see Remarks )
Name of file to print to instead of Printer



This method supports printing parts, assemblies, and both single and multisheet drawings.


For a part or assembly, the PageArray argument is ignored.  No dialogs or message boxes are displayed.

PageArray contains any number of pairs of values, each pair indicating the start page and end page of a range of pages to print. For example, to print sheets 1, 2, 3, 6, and 7 of a drawing, the array should contain 4 elements; 1, 3, 6, 7. This means to print pages 1-3 and 6-7.  A range can be 5, 5, which means to print just page 5. If the array contains only one value, only that page is printed. If that one element is 0, then all sheets are printed.

If PageArray is an empty array, then all sheets are printed. Also, the array can contain just a one value, rather than an array, in which case only that page is printed, just like passing in an array containing only one value.



To print to a file instead to a printer, set PrintFileName to a non-empty name.

If the PrintFileName is empty, then the document is printed to the printer specified in Printer.  If that string is empty, then the document is printed to the default printer for this document. Use IModelDoc2::Printer to get or set this value.


See Also


SOLIDWORKS 2004 FCS, Revision Number 12.0

Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   PrintOut2 Method (IModelDocExtension)
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:


We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again

Web Help Content Version: API Help (English only) 2016 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.