Hide Table of Contents
IPrintOut2 Method (IModelDocExtension)

Obsolete. Superseded by IModelDocExtension::IPrintOut3.

.NET Syntax

Visual Basic (Declaration) 
Sub IPrintOut2( _
   ByVal ArraySize As System.Integer, _
   ByRef PageArray As System.Integer, _
   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 ArraySize As System.Integer
Dim PageArray As System.Integer
Dim Copies As System.Integer
Dim Collate As System.Boolean
Dim Printer As System.String
Dim PrintFileName As System.String
instance.IPrintOut2(ArraySize, PageArray, Copies, Collate, Printer, PrintFileName)
void IPrintOut2( 
   System.int ArraySize,
   ref System.int PageArray,
   System.int Copies,
   System.bool Collate,
   System.string Printer,
   System.string PrintFileName
void IPrintOut2( 
&   System.int ArraySize,
&   System.int% PageArray,
&   System.int Copies,
&   System.bool Collate,
&   System.String^ Printer,
&   System.String^ PrintFileName



 Number of pages to print (see Remarks)

  • in-process, unmanaged C++: Pointer to an array of range of pages to print (see Remarks)
  • VBA, VB.NET, C#, and C++/CLI: Not supported

    See In-process Methods for details about this type of method.

  • Copies
    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.

    PageArray and ArraySize

    For a part or assembly, the ArraySize and PageArray arguments are 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 ArraySize = 0 or PageArray argument is NULL, the all sheets are printed.



    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:   IPrintOut2 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.